Merge branch 'development' of https://git.wmi.amu.edu.pl/s459309/system-pri into development

This commit is contained in:
adam-skowronek 2023-01-09 21:19:02 +01:00
commit e97e92e8b7
3 changed files with 16 additions and 3 deletions

View File

@ -14,4 +14,6 @@ RUN pip install -r requirements.txt
COPY . .
RUN flask db migrate
RUN flask db stamp head
RUN flask db migrate
RUN flask db upgrade

View File

@ -34,7 +34,7 @@ services:
# depends_on:
# - nginx_server
ports:
- "9998:80"
- "80:80"
volumes:
db_data:

View File

@ -1,3 +1,7 @@
upstream web_app {
server backend_service:5000;
}
server {
listen 80;
@ -6,4 +10,11 @@ server {
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
}
location ~ /api/ {
proxy_pass http://web_app;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
}