зеркало из https://github.com/Azure/ipam.git
32 строки
747 B
Plaintext
32 строки
747 B
Plaintext
# This is a default site configuration which will simply return 404, preventing
|
|
# chance access to any other virtualhost.
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
|
|
# Frontend
|
|
location / {
|
|
proxy_pass http://ipam-ui-dev;
|
|
}
|
|
|
|
# WebSockets
|
|
location /ws {
|
|
proxy_pass http://ipam-ui-dev;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
# Backend
|
|
location /api {
|
|
proxy_pass http://ipam-engine-dev;
|
|
}
|
|
|
|
# You may need this to prevent return 404 recursion.
|
|
location = /404.html {
|
|
internal;
|
|
}
|
|
}
|