salix/front/nginx.conf

20 lines
377 B
Nginx Configuration File

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
autoindex off;
root /usr/share/nginx/html;
error_page 404 =302 /;
location ~ ^(/[a-zA-Z0-9_-]+)?/(?<path>api(/.*)?)$ {
resolver 127.0.0.11;
proxy_pass http://api:3000/$path$is_args$args;
}
location ~ ^(?:/(.*))?$ {
alias /salix/dist/$1;
autoindex on;
}
}