update nginx.conf and docker-compose to match the server

This commit is contained in:
Will Freeman
2024-10-14 11:38:18 -05:00
parent a152c1d692
commit 4dbb70be8c
2 changed files with 13 additions and 10 deletions

View File

@@ -1,5 +1,8 @@
user nginx;
worker_processes 1;
user www-data;
worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 1024;
@@ -35,11 +38,11 @@ http {
ssl_certificate_key /etc/letsencrypt/live/deflock.me/privkey.pem;
location / {
proxy_pass http://deflock:8080;
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;
}
proxy_pass http://localhost:8080;
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;
}
}
}