fix: resolve container backends dynamically to allow nginx startup

This commit is contained in:
lingkai5wu committed 2026-10-16 16:06:17 +08:00
1 parent c323507de4
commit cf4c6983e2
8 files changed
+41 -6

No files matched your search

+6 -1
View File
@@ -1,3 +1,8 @@
upstream gitea_backend {
zone gitea_backend 64k;
server gitea:3000 resolve;
}
server {
include snippets/https.conf;
@@ -6,7 +11,7 @@ server {
include snippets/proxy.conf;
location / {
proxy_pass http://gitea:3000;
proxy_pass http://gitea_backend;
client_max_body_size 512M;
}
}