2018-02-03 19:14:44 +00:00
|
|
|
|
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
2018-02-03 21:53:02 +00:00
|
|
|
sendfile on;
|
|
|
|
gzip on;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
resolver 127.0.0.1;
|
|
|
|
include /etc/nginx/mime.types;
|
2018-02-03 19:14:44 +00:00
|
|
|
|
|
|
|
server {
|
2018-06-12 12:38:27 +00:00
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
server_name _;
|
2018-11-29 10:56:12 +00:00
|
|
|
autoindex off;
|
2018-02-03 19:14:44 +00:00
|
|
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
|
|
|
{{#services}}
|
|
|
|
location ~ ^/{{name}}(?:/(.*))?$ {
|
2018-12-27 11:54:16 +00:00
|
|
|
proxy_pass http://localhost:{{defaultPort}}/$1$is_args$args;
|
2018-02-03 19:14:44 +00:00
|
|
|
}
|
|
|
|
{{/services}}
|
|
|
|
|
|
|
|
location ~ ^/static(?:/(.*))?$ {
|
2018-12-27 11:54:16 +00:00
|
|
|
alias /salix/dist/$1;
|
2018-02-03 19:14:44 +00:00
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
location ~ ^(?:/(.*))?$ {
|
2018-12-27 11:54:16 +00:00
|
|
|
proxy_pass http://localhost:{{defaultPort}}/$1$is_args$args;
|
2018-02-03 19:14:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|