49 lines
1.4 KiB
Nginx Configuration File
49 lines
1.4 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
location /api/ { # api server
|
|
client_max_body_size 0;
|
|
proxy_http_version 1.0;
|
|
proxy_pass http://jannex-admin-dashboard-backend-service/;
|
|
}
|
|
|
|
location /ws { # websocket server
|
|
proxy_read_timeout 10800s;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://jannex-admin-dashboard-backend-service/ws/;
|
|
proxy_http_version 1.1;
|
|
}
|
|
|
|
location /lm/ { # log manager server
|
|
client_max_body_size 0;
|
|
proxy_http_version 1.0;
|
|
proxy_set_header Connection ""; # needed for sse
|
|
proxy_pass http://jannex-log-manager-server-service/;
|
|
}
|
|
|
|
#location /tm/ { # telegram bot manager
|
|
# client_max_body_size 0;
|
|
# proxy_http_version 1.0;
|
|
# proxy_set_header Connection ""; # needed for sse
|
|
# proxy_pass http://jnx-telegram-bot-manager/;
|
|
#}
|
|
|
|
#location /rcm/ { # robot control manager
|
|
# proxy_read_timeout 10800s;
|
|
# client_max_body_size 0;
|
|
# proxy_http_version 1.0;
|
|
# proxy_set_header Connection ""; # needed for sse
|
|
# proxy_set_header X-Real-IP $remote_addr; # needed to get the robot ip address
|
|
# proxy_pass http://jnx-robot-control-manager/;
|
|
#}
|
|
|
|
location / { # frontend
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
try_files $uri /index.html;
|
|
}
|
|
}
|