Consegui que funcionasse, não sei por que
- Apenas a porta 443 reagiu de alguma forma
-
Estava todo branco antes até eu c / ced todo o cabeçalho da localização / local para o cache de imagens.
upstream nas { servidor 192.168.0.123:443; }
servidor { ouça 80; return 302 https: // $ server_name $ request_uri; }
servidor { server_name nas.my.domain;
listen 443 ssl http2; # listen [::]:443 ssl http2; access_log /var/log/nginx/nas.access.log; error_log /var/log/nginx/nas.error.log; ssl_certificate /etc/letsencrypt/live/nas.my.domain/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/nas.my.domain/privkey.pem; include /etc/nginx/include/diffie-hellman; client_max_body_size 2m; location ~* \.(?:ico|css|js|gif|jpe?g|png|ttf|woff|)$ { access_log off; expires 30d; add_header Pragma public; add_header Cache-Control "public, mustrevalidate, proxy-revalidate"; proxy_set_header HOST $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-NginX-Proxy true; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_pass https://nas; proxy_redirect off; proxy_buffering off; } location / { proxy_set_header HOST $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-NginX-Proxy true; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; proxy_pass https://nas; proxy_redirect off; proxy_buffering off; }
}