Created
April 10, 2019 19:16
-
-
Save SarasArya/6c7b5548db674fde913c6a7c6c0f3e15 to your computer and use it in GitHub Desktop.
Basic Server setup guidelines and links
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
ssh -i ~/Desktop/your-key-name.pem [email protected] | |
Post which you will get a popup saying WARNING: UNPROTECTED PRIVATE KEY FILE! | |
To fix this error chmod 700 ~/Desktop/your-key-name.pem | |
1. Use this guide to setup a different user - https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04 | |
2. Setup to have SSH key based access - https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server | |
3. Install Node.js https://websiteforstudents.com/install-the-latest-node-js-and-nmp-packages-on-ubuntu-16-04-18-04-lts/ | |
4. Install Yarn like this | |
curl -o- -L https://yarnpkg.com/install.sh | bash | |
5. Install Nginx https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04 | |
for static site https://gist.github.com/SarasArya/18fc417d8ba807408b477d5b726412b4 | |
for server https://gist.github.com/SarasArya/4a5a07db6529ef10ce82a69a1ba18253 | |
6. Install Certbot from here https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04 | |
7. Type this command to generate wild card cert | |
sudo certbot certonly --manual -d *.yourwebsite.com --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory --no-bootstrap | |
8. Add docker to Container https://docs.docker.com/v17.09/engine/installation/linux/docker-ce/ubuntu/ | |
9. At the bottom of the page are post installation script please add docker to sudoers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment