fix(deploy): add resolver 127.0.0.11 for fastapi upstream in nginx-m1.conf

This commit is contained in:
2026-09-19 15:57:14 -07:00
parent e63c964844
commit 7074b82ced
+3
View File
@@ -4,6 +4,9 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
# Docker embedded DNS for service name resolution (fastapi)
resolver 127.0.0.11 valid=10s;
# SPA: fall back to index.html for any path # SPA: fall back to index.html for any path
# Proxy API calls to the FastAPI backend (M3+) # Proxy API calls to the FastAPI backend (M3+)
# Use variable to defer DNS resolution (docker service name "fastapi") # Use variable to defer DNS resolution (docker service name "fastapi")