Skip to content

Instantly share code, notes, and snippets.

@laurentdinclaux
Last active January 18, 2017 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laurentdinclaux/139361b88514e49440145a3c45a6b940 to your computer and use it in GitHub Desktop.
Save laurentdinclaux/139361b88514e49440145a3c45a6b940 to your computer and use it in GitHub Desktop.
Front proxy config
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;
}
# [...]
}
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