nginx-configs/common/gitea.conf

18 lines
599 B
Plaintext
Raw Normal View History

2022-07-25 10:55:46 +00:00
add_header Onion-Location http://git.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
2022-10-21 20:40:01 +00:00
add_header X-I2P-Location http://vernj47t2vz4qiobsrcaj6eqhaquqe5qsaejga2glol4b2snhcfa.b32.i2p$request_uri;
2022-07-25 10:55:46 +00:00
2022-11-09 16:51:55 +00:00
subs_filter "http://git.vern.cc" "http://$host";
2022-10-25 08:30:16 +00:00
2022-07-25 10:55:46 +00:00
location / {
client_max_body_size 100m;
2022-09-06 03:12:07 +00:00
proxy_pass http://localhost:3000/;
2022-07-25 10:55:46 +00:00
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";
}
2023-11-20 07:03:34 +00:00
if ($badagent) {
return 403;
}