nginx-configs/common/0x0.conf

20 lines
599 B
Plaintext

add_header Onion-Location http://0.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernkjqjz3qctifc3ovi7s77zzkej6qb6wbgly7yu46tgtffskla.b32.i2p$request_uri;
client_max_body_size 1024M;
root /home/0x0/0x0;
location / {
proxy_pass http://localhost:3031/;
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 http;
proxy_cookie_path / "/; Secure; HttpOnly; SameSite=lax";
ssi on;
}
location /up {
internal;
}
if ($badagent) {
return 403;
}