salix/front/nginx.conf

26 lines
425 B
Nginx Configuration File
Raw Normal View History

2018-12-27 15:10:55 +00:00
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
autoindex off;
root /salix/dist;
2019-02-01 08:47:52 +00:00
error_page 404 = @notfound;
2019-02-01 10:06:23 +00:00
location @notfound {
2019-02-01 08:47:52 +00:00
return 302 /;
}
upstream back {
server back_1;
server back_2;
server back_3;
}
2019-01-26 13:22:59 +00:00
location ~ ^(/[a-zA-Z0-9_-]+)?/(?<path>api(/.*)?)$ {
proxy_pass http://back:3000/$path$is_args$args;
2018-12-27 15:10:55 +00:00
}
location / {
2018-12-27 15:10:55 +00:00
autoindex on;
}
}