Skip to content

Commit d1d2ab0

Browse files
authored
Merge pull request #638 from RagingCub/resolvegitealfsauthelia
Resolve lfs incompatibility with authelia for gitea
2 parents 20c5dbd + 1cd61c9 commit d1d2ab0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

gitea.subdomain.conf.sample

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/05/31
1+
## Version 2023/12/26
22
# make sure that your gitea container is named gitea
33
# make sure that your dns has a cname set for gitea
44
# edit the following parameters in /data/gitea/conf/app.ini
@@ -48,4 +48,14 @@ server {
4848
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4949

5050
}
51+
52+
location ~ (/gitea)?/info/lfs {
53+
include /config/nginx/proxy.conf;
54+
include /config/nginx/resolver.conf;
55+
set $upstream_app gitea;
56+
set $upstream_port 3000;
57+
set $upstream_proto http;
58+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
59+
60+
}
5161
}

0 commit comments

Comments
 (0)