nginx-configs/common/usersites-socket.conf

19 lines
622 B
Plaintext
Raw Normal View History

2022-11-04 06:25:37 +00:00
add_header Onion-Location http://$site-$user.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p/socks/$user/$site$request_uri;
2022-10-29 17:20:37 +00:00
error_log /var/log/nginx/vern.cc-error.log info;
ssi on;
location / {
proxy_pass http://unix:/var/socks/$user.sock;
proxy_http_version 1.1;
2022-11-04 06:25:37 +00:00
proxy_set_header Host $site-$user.vern.cc;
2022-10-29 17:20:37 +00:00
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
2023-11-20 07:03:34 +00:00
if ($badagent) {
return 403;
}