nginx-configs/common/ntfy.conf

22 lines
746 B
Plaintext
Raw Permalink Normal View History

add_header Onion-Location http://ntfy.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
2022-10-21 20:40:01 +00:00
add_header X-I2P-Location http://vernvx3w4jkwznya72gnslmkabthu6behn7mlfunezcubsjazaxq.b32.i2p$request_uri;
2022-10-15 16:24:56 +00:00
location / {
proxy_pass http://127.0.0.1:2586;
proxy_http_version 1.1;
proxy_buffering off;
proxy_request_buffering off;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 3m;
proxy_send_timeout 3m;
proxy_read_timeout 3m;
client_max_body_size 20m; # Must be >= attachment-file-size-limit in /etc/ntfy/server.yml
}
2023-11-20 07:03:34 +00:00
if ($badagent) {
return 403;
}