Docker: single container compose
This commit is contained in:
28
firewall/config/nginx.conf
Executable file
28
firewall/config/nginx.conf
Executable file
@@ -0,0 +1,28 @@
|
||||
worker_processes 5; ## Default: 1
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
user nobody nogroup;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http{
|
||||
server {
|
||||
listen ${NGINX_PORT};
|
||||
server_name _;
|
||||
|
||||
|
||||
root /execute/frontend/;
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
include proxy_params;
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user