2025-11-04
This commit is contained in:
parent
e4eaf6404a
commit
66397de267
101 changed files with 2573 additions and 58 deletions
35
containers/conf/angie/snippets/proxy.conf-example
Executable file
35
containers/conf/angie/snippets/proxy.conf-example
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
#include this in the location of your vhost you want to proxy
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Scheme $scheme;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
proxy_set_header REMOTE_ADDR $remote_addr;
|
||||
proxy_set_header HTTP_CF_CONNECTING_IP $remote_addr;
|
||||
proxy_set_header Early-Data $ssl_early_data;
|
||||
|
||||
add_header Front-End-Https on;
|
||||
|
||||
proxy_redirect off;
|
||||
proxy_buffering off;
|
||||
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 4 256k;
|
||||
proxy_busy_buffers_size 256k;
|
||||
|
||||
proxy_ssl_verify off;
|
||||
proxy_ssl_session_reuse on;
|
||||
proxy_ssl_protocols TLSv1.3 TLSv1.2;
|
||||
|
||||
# WebSocket stuff
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
# Prevent application/json content from being cached (Breaks nzbget and possibly others)
|
||||
# more_set_headers -t "application/json" "Last-Modified $date_gmt";
|
||||
# more_set_headers -t "application/json" "Expect-CT 'max-age=0; enforce'";
|
||||
# more_set_headers -t "application/json" "Cache-Control 'no-transform, no-store, no-cache, must-revalidate, proxy-revalidate, public, max-age=0'";
|
||||
# more_clear_headers -t "application/json" 'etag:*';
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue