diff --git a/nginx/conf.d/default.conf b/nginx/conf.d/default.conf index ec7cbd3..6f8beb9 100644 --- a/nginx/conf.d/default.conf +++ b/nginx/conf.d/default.conf @@ -1,17 +1,20 @@ server { - listen 80 default_server; - listen [::]:80 default_server; - server_name _; - root /etc/nginx/www; - index index.html; - - location / { - index index.html; - try_files $uri $uri/ /index.html; - } + listen 80 default_server; + listen [::]:80 default_server; + server_name _; - location /api/ { - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; + location /api/ { + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; proxy_pass http://localhost:3005/; } -} + + location /manager-api/ { + add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; + proxy_pass http://localhost:3006/; + } + + location / { + add_header Access-Control-Allow-Origin *; + proxy_pass http://localhost:3004/; + } +} \ No newline at end of file