#PROXY-START/
location ^~ /
{
proxy_pass https://127.0.0.1:443;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
set $static_file6v2NGe6y 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
set $static_file6v2NGe6y 1;
expires 12h;
}
if ( $static_file6v2NGe6y = 0 )
{
add_header Cache-Control no-cache;
}
}
location ^~ /group1
{
proxy_pass http://1.1.1.1:8080;
proxy_set_header Host 1.1.1.1:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
set $static_asduashh322 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
set $static_fileHnI8TTi6c 1;
expires 12h;
}
if ( $static_asduashh322 = 0 )
{
add_header Cache-Control no-cache;
}
}#PROXY-END/ |