Resolve lfs incompatibility with authelia for gitea

This commit is contained in:
RagingCub 2023-12-26 16:53:38 -05:00
parent 20c5dbdcff
commit 1cd61c9e1a

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;
}
}