diff --git a/README.md b/README.md index caad71c..f244070 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,26 @@ git clone ssh://git@git.miningtcup.me:222/MiningTcup/noteserver.git cd noteserver sh reload.sh sh docker-deploy.sh +``` +After starting the docker instance and checking that it's up, you should use [nginx](https://nginx.org/) or another reverse proxy. +```nginx +server +{ + location / { + proxy_pass http://127.0.0.1:3002; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + server_name notes.miningtcup.me; # managed by Certbot + + listen 443 ssl; # managed by Certbot + listen [::]:443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/miningtcup.me/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/miningtcup.me/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot +} ``` \ No newline at end of file