This is a small write up about how to migrate your pritunl install between servers. It's not especially detailed because I'm lazy and your migration story will most likely be different. All this can be avoided by using a remote/hosted mongo instance(compose.io, mongolab, etc.) and simply pointing your pritunl instance at that. If you want more details ask, and I'll do my best to answer and update this write-up accordingly. Also, feel free to criticize my grammar and spelling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service pritunl stop | |
mongodump -d pritunl -o pritunl-bkp | |
tar -czvf pritunl-bkp.tar.gz pritunl-bkp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream tunnel { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
server_name dev.codeplane.com br.dev.codeplane.com; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump -u MYSQL_USERNAME -p YOUR_DATABASE | gzip -c | ssh USERNAME@YOUR_TO_HOST 'cat > ~/dump.sql.gz' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"dependencies":{"@quasar/cli":{"version":"1.0.5","from":"@quasar/cli","resolved":"https://registry.npmjs.org/@quasar/cli/-/cli-1.0.5.tgz"},"@quasar/quasar-app-extension-icon-genie":{"version":"1.1.3","from":"@quasar/quasar-app-extension-icon-genie","resolved":"https://registry.npmjs.org/@quasar/quasar-app-extension-icon-genie/-/quasar-app-extension-icon-genie-1.1.3.tgz"},"@vue/cli":{"version":"4.1.1","from":"@vue/cli","resolved":"https://registry.npmjs.org/@vue/cli/-/cli-4.1.1.tgz"},"@vue/devtools":{"version":"5.3.3","from":"@vue/devtools","resolved":"https://registry.npmjs.org/@vue/devtools/-/devtools-5.3.3.tgz"},"browser-sync":{"version":"2.26.7","from":"browser-sync","resolved":"https://registry.npmjs.org/browser-sync/-/browser-sync-2.26.7.tgz"},"cordova":{"version":"8.1.2","from":"[email protected]","resolved":"https://registry.npmjs.org/cordova/-/cordova-8.1.2.tgz"},"cross-env":{"version":"5.2.0","from":"cross-env","resolved":"https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz"},"gyp":{"version":"0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"dependencies":{"@quasar/cli":{"version":"1.0.5","from":"@quasar/cli","resolved":"https://registry.npmjs.org/@quasar/cli/-/cli-1.0.5.tgz"},"@quasar/quasar-app-extension-icon-genie":{"version":"1.1.3","from":"@quasar/quasar-app-extension-icon-genie","resolved":"https://registry.npmjs.org/@quasar/quasar-app-extension-icon-genie/-/quasar-app-extension-icon-genie-1.1.3.tgz"},"@vue/cli":{"version":"4.1.1","from":"@vue/cli","resolved":"https://registry.npmjs.org/@vue/cli/-/cli-4.1.1.tgz"},"@vue/devtools":{"version":"5.3.3","from":"@vue/devtools","resolved":"https://registry.npmjs.org/@vue/devtools/-/devtools-5.3.3.tgz"},"browser-sync":{"version":"2.26.7","from":"browser-sync","resolved":"https://registry.npmjs.org/browser-sync/-/browser-sync-2.26.7.tgz"},"cordova":{"version":"8.1.2","from":"[email protected]","resolved":"https://registry.npmjs.org/cordova/-/cordova-8.1.2.tgz"},"cross-env":{"version":"5.2.0","from":"cross-env","resolved":"https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz"},"gyp":{"version":"0. |