Created
May 29, 2018 20:31
-
-
Save LnL7/de227bd20b6e759d5bf9c0bfa6cdd920 to your computer and use it in GitHub Desktop.
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
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