-
-
Save laurentdinclaux/139361b88514e49440145a3c45a6b940 to your computer and use it in GitHub Desktop.
Front proxy config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
# [...] | |
include proxy_params; | |
location /nextcloud { | |
proxy_pass http://[IP]/nextcloud; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
client_max_body_size 16G; | |
proxy_connect_timeout 1200; | |
proxy_send_timeout 1200; | |
proxy_read_timeout 1200; | |
# send_timeout 600; | |
proxy_buffering off; | |
proxy_request_buffering off; | |
} | |
# [...] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy_set_header Host $http_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_set_header X-Forwarded-Host $remote_addr; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment