Update nginx.conf

This commit is contained in:
Narayana 2023-03-08 17:33:14 +05:30
parent 641a2183b6
commit 7987750bc8

View File

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