2022-06-11 21:57:50 +02:00
|
|
|
worker_processes 5; ## Default: 1
|
|
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
2022-06-12 18:50:57 +02:00
|
|
|
user nobody nogroup;
|
2022-06-11 21:57:50 +02:00
|
|
|
|
|
|
|
|
events {
|
|
|
|
|
worker_connections 1024;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http{
|
|
|
|
|
server {
|
2022-06-12 20:02:05 +02:00
|
|
|
listen ${NGINX_PORT};
|
2022-06-11 21:57:50 +02:00
|
|
|
server_name _;
|
|
|
|
|
|
2022-06-12 20:02:05 +02:00
|
|
|
|
|
|
|
|
root /execute/frontend/;
|
2022-06-11 21:57:50 +02:00
|
|
|
location / {
|
2022-06-12 20:02:05 +02:00
|
|
|
try_files $uri /index.html;
|
2022-06-11 21:57:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /api/ {
|
|
|
|
|
include proxy_params;
|
2022-06-12 18:50:57 +02:00
|
|
|
proxy_pass http://127.0.0.1:8080;
|
2022-06-11 21:57:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|