Created
October 23, 2020 17:14
-
-
Save neoreids/9383531dfe6e7f0e05c7a06c09f94b48 to your computer and use it in GitHub Desktop.
Proxy_pass default config for enable https proxy
This file contains hidden or 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_buffers 32 4m; | |
proxy_busy_buffers_size 25m; | |
proxy_buffer_size 512k; | |
proxy_ignore_headers "Cache-Control" "Expires"; | |
proxy_max_temp_file_size 0; | |
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; | |
client_max_body_size 1024m; | |
client_body_buffer_size 4m; | |
proxy_connect_timeout 300; | |
proxy_read_timeout 300; | |
proxy_send_timeout 300; | |
proxy_intercept_errors off; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_headers_hash_max_size 512; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment