Unify nginx config
All checks were successful
ShellCheck / shellcheck (push) Successful in 17s

This commit is contained in:
Mathieu Strypsteen 2024-11-20 17:38:13 +01:00
parent 916f55fde0
commit 1648634933
Signed by: mathieu
GPG key ID: 782A42E461BC6824
21 changed files with 2 additions and 3 deletions

View file

@ -27,7 +27,7 @@ http {
proxy_read_timeout 600; proxy_read_timeout 600;
proxy_send_timeout 600; proxy_send_timeout 600;
resolver host.containers.internal; resolver host.containers.internal;
include /etc/nginx-sites/*; include /etc/nginx/sites/*;
server { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;

View file

@ -6,7 +6,7 @@ server {
include snippets/local-only.conf; include snippets/local-only.conf;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'" always; add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'" always;
location / { location / {
set $upstream gaming-vm.server.home.arpa; set $upstream gpu-vm.server.home.arpa;
proxy_pass https://$upstream:47990; proxy_pass https://$upstream:47990;
proxy_ssl_verify off; proxy_ssl_verify off;
include snippets/proxy.conf; include snippets/proxy.conf;

View file

@ -2,7 +2,6 @@
Image=cgr.dev/chainguard/nginx Image=cgr.dev/chainguard/nginx
Network=nginx.network Network=nginx.network
Volume=/var/lib/system-config/container-config/nginx:/etc/nginx:z,ro Volume=/var/lib/system-config/container-config/nginx:/etc/nginx:z,ro
Volume=/var/lib/system-config/container-config/nginx-home:/etc/nginx-sites:z,ro
Volume=/var/lib/system-config/container-config/site:/var/www:z,ro Volume=/var/lib/system-config/container-config/site:/var/www:z,ro
Volume=/etc/certificates/certificates:/etc/certificates:z,ro Volume=/etc/certificates/certificates:/etc/certificates:z,ro
Tmpfs=/var/lib/nginx/tmp Tmpfs=/var/lib/nginx/tmp