[chore] Improvements in docker structure
This commit is contained in:
@@ -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/;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user