nginx-configs/common/rimgo.conf

18 lines
586 B
Plaintext
Raw Normal View History

2022-10-29 15:41:56 +00:00
add_header Onion-Location http://rg.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
2022-10-21 20:40:01 +00:00
add_header X-I2P-Location http://vernu3bfx2rvpuaccs5q27yncv6srdijkan6ixbkvyc2lsbrslxq.b32.i2p$request_uri;
2022-07-25 10:55:46 +00:00
error_log /var/log/nginx/error.log crit;
2022-10-29 15:41:56 +00:00
subs_filter rimgo.vern.cc $host;
2022-07-25 10:55:46 +00:00
location / {
2022-10-21 11:29:56 +00:00
proxy_pass http://10.0.3.57:5001/;
2022-07-25 10:55:46 +00:00
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host; # so Invidious knows domain
proxy_http_version 1.1; # to keep alive
proxy_set_header Connection ""; # to keep alive
}
2023-11-20 07:03:34 +00:00
if ($badagent) {
return 403;
}