настройка докер-связи с бэком
Build, Test and Push Flask App / docker-build-and-push (push) Successful in 1m44s
Build, Test and Push Flask App / deploy (push) Successful in 2m8s

This commit is contained in:
Joe_Peach committed 2026-09-28 18:07:35 +03:00
1 parent 29f788ed9a
commit 9fc422eb02
6 files changed
+47 -15

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
server {
listen 80;
location /api/ {
proxy_pass http://${BACKEND_UPSTREAM};
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}