infrastructure/njallavps/swag/nginx/proxy-confs/gitea.subfolder.conf.sample
2023-01-23 15:23:38 +00:00

22 lines
593 B
Plaintext

## Version 2021/05/18
# The following parameters in /data/gitea/conf/app.ini should be edited to match your setup
# [server]
# SSH_DOMAIN = example.com:2222
# ROOT_URL = https://example.com/gitea/
# DOMAIN = example.com
location /gitea {
return 301 $scheme://$host/gitea/;
}
location ^~ /gitea/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app gitea;
set $upstream_port 3000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
rewrite /gitea(.*) $1 break;
}