mirror of
https://git.anonymousland.org/anonymousland/infrastructure.git
synced 2025-01-19 10:11:30 -05:00
8d6fb20c2c
Co-authored-by: NebulaOnion <nebulaonion@tutanota.com> Reviewed-on: https://git.anonymousland.org/anonymousland/infrastructure/pulls/5
22 lines
593 B
Plaintext
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;
|
|
}
|