Fix: nginx.conf in frontend build context
This commit is contained in:
parent
c8b354ed45
commit
3794f925d4
1 changed files with 15 additions and 0 deletions
15
frontend/nginx.conf
Normal file
15
frontend/nginx.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
server {
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://backend:3001;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue