nginx-configs/common/gitea.conf

18 lines
599 B
Plaintext

add_header Onion-Location http://git.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernj47t2vz4qiobsrcaj6eqhaquqe5qsaejga2glol4b2snhcfa.b32.i2p$request_uri;
subs_filter "http://git.vern.cc" "http://$host";
location / {
client_max_body_size 100m;
proxy_pass http://localhost:3000/;
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 $scheme;
proxy_cookie_path / "/; Secure; HttpOnly; SameSite=lax";
}
if ($badagent) {
return 403;
}