[chore] Improvements in docker structure

This commit is contained in:
ITQ
2024-04-01 14:06:30 +03:00
parent b88ae25d67
commit 0fa37bf7fc
6 changed files with 71 additions and 45 deletions
+23
View File
@@ -0,0 +1,23 @@
server {
listen 80;
server_tokens off;
location /api/ {
proxy_pass http://backend:8080/api/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location / {
root /usr/share/nginx/html/;
index index.html;
try_files $uri $uri/ /index.html;
}
location /media/ {
root /var/html/;
}
location /static/ {
root /var/html/;
}
}