55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
|
|
worker_processes 1;
|
|
|
|
error_log temp/error.log;
|
|
pid temp/nginx.pid;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
sendfile on;
|
|
gzip on;
|
|
default_type application/octet-stream;
|
|
|
|
access_log temp/access.log;
|
|
client_body_temp_path temp/client-body;
|
|
proxy_temp_path temp/proxy;
|
|
fastcgi_temp_path temp/fastcgi;
|
|
uwsgi_temp_path temp/uwsgi;
|
|
scgi_temp_path temp/scgi;
|
|
|
|
server {
|
|
listen 5000;
|
|
server_name localhost;
|
|
autoindex off;
|
|
|
|
{{#services}}
|
|
location ~ ^/{{name}}(?:/(.*))?$ {
|
|
proxy_pass http://127.0.0.1:{{port}}/$1$is_args$args;
|
|
}
|
|
{{/services}}
|
|
|
|
location ~ ^/static(?:/(.*))?$ {
|
|
proxy_pass http://127.0.0.1:{{devServerPort}}/$1$is_args$args;
|
|
}
|
|
location ~ ^(?:/(.*))?$ {
|
|
proxy_pass http://127.0.0.1:{{defaultPort}}/$1$is_args$args;
|
|
}
|
|
}
|
|
|
|
types {
|
|
text/html html;
|
|
application/json json;
|
|
application/javascript js;
|
|
text/css css scss;
|
|
text/xml xml;
|
|
image/x-icon ico;
|
|
image/png png;
|
|
image/svg+xml svg;
|
|
image/gif gif;
|
|
image/jpeg jpeg jpg;
|
|
}
|
|
}
|