Browse Source

nginx

patch-1
Mayank 5 years ago
parent
commit
d646edf5d3
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 19
      nginx/conf.d/default.conf

19
nginx/conf.d/default.conf

@ -2,16 +2,19 @@ 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;
}
location /api/ {
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
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/;
}
}
Loading…
Cancel
Save