nginx-configs/common/hedgedoc.conf

24 lines
767 B
Plaintext
Raw Normal View History

add_header Onion-Location http://hd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
2022-10-21 20:40:01 +00:00
add_header X-I2P-Location http://vernfy3k7royqfe7pg6wgzj53ipltd5nb4acjtjmwgpqrkxwmcla.b32.i2p$request_uri;
2022-10-25 08:30:16 +00:00
subs_filter "hd.vern.cc" "$host";
location / {
2023-01-02 03:27:18 +00:00
proxy_pass http://127.0.0.1:3001;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /socket.io/ {
2023-01-02 03:27:18 +00:00
proxy_pass http://127.0.0.1:3001;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
2023-11-20 07:03:34 +00:00
if ($badagent) {
return 403;
}