mirror of https://github.com/lukechilds/umbrel.git
1 changed files with 16 additions and 13 deletions
@ -1,17 +1,20 @@ |
|||||
server { |
server { |
||||
listen 80 default_server; |
listen 80 default_server; |
||||
listen [::]:80 default_server; |
listen [::]:80 default_server; |
||||
server_name _; |
server_name _; |
||||
root /etc/nginx/www; |
|
||||
index index.html; |
|
||||
|
|
||||
location / { |
|
||||
index index.html; |
|
||||
try_files $uri $uri/ /index.html; |
|
||||
} |
|
||||
|
|
||||
location /api/ { |
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/; |
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…
Reference in new issue