Skip to content

Commit 1cd61c9

Browse files
RagingCubRagingCub
authored andcommitted
Resolve lfs incompatibility with authelia for gitea
1 parent 20c5dbd commit 1cd61c9

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

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)