Created
May 6, 2019 12:34
-
-
Save LowerDeez/647896d2453640fa91b82adf309235f3 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_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_connect_timeout 350; | |
proxy_send_timeout 350; | |
proxy_read_timeout 350; | |
proxy_pass http://app_server; | |
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|psd|ai|eo$ | |
root /home/django/public_html; | |
expires max; | |
try_files $uri @fallback; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment