2018-02-03 19:14:44 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
server_name _;
|
|
|
|
autoindex off;
|
2018-02-03 19:14:44 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
root /usr/share/nginx/html;
|
2018-02-03 19:14:44 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
{{#services}}
|
|
|
|
location ~ ^/{{.}}(?:/(.*))?$ {
|
|
|
|
proxy_pass http://127.0.0.1:{{defaultPort}}/$1$is_args$args;
|
|
|
|
}
|
|
|
|
{{/services}}
|
2018-02-03 19:14:44 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
location ~ ^/static(?:/(.*))?$ {
|
|
|
|
alias /salix/dist/$1;
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
location ~ ^(?:/(.*))?$ {
|
|
|
|
proxy_pass http://127.0.0.1:{{defaultPort}}/$1$is_args$args;
|
2018-02-03 19:14:44 +00:00
|
|
|
}
|
|
|
|
}
|