Update nginx.conf

This commit is contained in:
Narayana 2023-03-08 17:26:52 +05:30
parent 99c8c2eac6
commit 641a2183b6

View File

@ -10,10 +10,12 @@ server {
access_log /var/log/nginx/access.log;
location / {
proxy_pass http://planefrontend:3000/;
add_header 'Access-Control-Allow-Origin' '*' always;
}
location /api/ {
proxy_pass http://planebackend:8000/api/;
add_header 'Access-Control-Allow-Origin' '*' always;
}
}