Last active
September 14, 2022 11:30
-
-
Save amon-ra/0b7f38c47b802b05dc9b2f40e490fb09 to your computer and use it in GitHub Desktop.
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_read_timeout 720s; | |
proxy_connect_timeout 720s; | |
proxy_send_timeout 720s; | |
proxy_buffering on; | |
proxy_buffers 16 8k; | |
proxy_buffer_size 16k; | |
proxy_set_header HOST $http_host; | |
#proxy_set_header Referer ''; | |
#proxy_set_header Origin ''; | |
proxy_set_header X-NginX-Proxy true; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Odoo-dbfilter {snakeCase DOMAIN}; | |
#rewrite ^/api/auth/token.*$ /api/auth/token?login=$arg_login&password=$arg_password&db=scout10.com? last; | |
location /longpolling { | |
proxy_pass http://{PROXY}:8072; | |
} | |
#location / { | |
# proxy_redirect off; | |
# proxy_pass http://{PROXY}:8069; | |
# add_header Access-Control-Allow-Origin "*"; | |
# add_header Access-Control-Allow-Credentials 'true'; | |
#} | |
location /web/database/manager { return 404; } | |
location ~* /web/image/ { | |
proxy_cache_valid 200 301 302 304 10m; | |
proxy_buffering on; | |
expires 864000; | |
proxy_pass http://{PROXY}:8069; | |
} | |
location ~* /static/ { | |
proxy_cache_valid 200 301 302 304 90m; | |
proxy_buffering on; | |
expires 864000; | |
proxy_pass http://{PROXY}:8069; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment