parent
f7f50863fe
commit
4ca12affe1
1 changed files with 29 additions and 0 deletions
@ -0,0 +1,29 @@ |
||||
server { |
||||
listen 443 ssl http2; |
||||
listen [::]:443 ssl http2; |
||||
|
||||
server_name nextcloud.*; |
||||
|
||||
include /config/nginx/ssl.conf; |
||||
|
||||
client_max_body_size 0; |
||||
|
||||
location / { |
||||
include /config/nginx/proxy.conf; |
||||
include /config/nginx/resolver.conf; |
||||
set $upstream_app nextcloud; |
||||
set $upstream_port 443; |
||||
set $upstream_proto https; |
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port; |
||||
|
||||
# Hide proxy response headers from Nextcloud that conflict with ssl.conf |
||||
# Uncomment the Optional additional headers in SWAG's ssl.conf to pass Nextcloud's security scan |
||||
proxy_hide_header Referrer-Policy; |
||||
proxy_hide_header X-Content-Type-Options; |
||||
proxy_hide_header X-Frame-Options; |
||||
proxy_hide_header X-XSS-Protection; |
||||
|
||||
# Disable proxy buffering |
||||
proxy_buffering off; |
||||
} |
||||
} |
Loading…
Reference in new issue