Merge pull request #638 from RagingCub/resolvegitealfsauthelia

Resolve lfs incompatibility with authelia for gitea
This commit is contained in:
Eric Nemchik 2024-01-03 20:17:25 -06:00 committed by GitHub
commit d1d2ab00c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
## Version 2023/05/31
## Version 2023/12/26
# make sure that your gitea container is named gitea
# make sure that your dns has a cname set for gitea
# edit the following parameters in /data/gitea/conf/app.ini
@ -48,4 +48,14 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/gitea)?/info/lfs {
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;
}
}