Update README.md
This commit is contained in:
22
README.md
22
README.md
@@ -10,3 +10,25 @@ 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
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user