mysrv.conf
· 428 B · Text
Bruto
server {
listen 80;
listen [::]:80;
server_name example.com # replace with your domain
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
#client_max_body_size 100M;
location / {
proxy_pass http://127.0.0.1:8080; # port on host bound to actual http-server
}
}
# if `curl -i <your domain>` shows 200 then you can use `certbot --nginx` to protect service with SSL
| 1 | server { |
| 2 | listen 80; |
| 3 | listen [::]:80; |
| 4 | server_name example.com # replace with your domain |
| 5 | |
| 6 | access_log /var/log/nginx/access.log; |
| 7 | error_log /var/log/nginx/error.log; |
| 8 | #client_max_body_size 100M; |
| 9 | |
| 10 | location / { |
| 11 | proxy_pass http://127.0.0.1:8080; # port on host bound to actual http-server |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | # if `curl -i <your domain>` shows 200 then you can use `certbot --nginx` to protect service with SSL |
| 16 |