fix(deploy): add resolver 127.0.0.11 for fastapi upstream in nginx-m1.conf
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user