Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created May 29, 2018 20:31
Show Gist options
  • Save LnL7/de227bd20b6e759d5bf9c0bfa6cdd920 to your computer and use it in GitHub Desktop.
Save LnL7/de227bd20b6e759d5bf9c0bfa6cdd920 to your computer and use it in GitHub Desktop.
location / { proxy_pass http://nix-cache; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_connect_timeout 10; proxy_send_timeout 10; proxy_read_timeout 10; send_timeout 10; proxy_intercept_errors on; recursive_error_pages on; error_page 500 502 503 504 = @404; } location @404 { return 404; location / {
proxy_pass http://nix-cache;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 10;
proxy_send_timeout 10;
proxy_read_timeout 10;
send_timeout 10;
proxy_intercept_errors on;
recursive_error_pages on;
error_page 500 502 503 504 = @404;
}
location @404 {
return 404;
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment