nginx-configs/common/destructables.conf

32 lines
946 B
Plaintext
Raw Permalink Normal View History

2023-01-21 19:23:24 +00:00
add_header Onion-Location http://ds.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vern543vpdnea54gxj4ra66ijciu4fff26emabkdz4w4rgnyx2eq.b32.i2p$request_uri;
2023-01-21 19:23:24 +00:00
location / {
proxy_pass http://10.0.3.57:2946;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /proxy/ {
proxy_pass http://10.0.3.57:2946;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache ds-img;
}
location /contest/archive/ {
proxy_pass http://10.0.3.57:2946;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache ds-archive;
}
2023-11-20 07:03:34 +00:00
if ($badagent) {
return 403;
}