docker
parent
bb7a804218
commit
154a12c6f6
|
@ -1,4 +1,4 @@
|
||||||
FROM nginx:latest
|
FROM nginx:1.25.3-alpine
|
||||||
|
|
||||||
COPY ./build /usr/share/nginx/html
|
COPY ./build /usr/share/nginx/html
|
||||||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
@ -1,8 +1,5 @@
|
||||||
###
|
|
||||||
# TODO: CHANGE THESE VALUES TO CUSTOMER DASHBAORD !!!
|
|
||||||
|
|
||||||
DOCKER_REGISTRY_URL="dockreg.ex.umbach.dev"
|
DOCKER_REGISTRY_URL="dockreg.ex.umbach.dev"
|
||||||
DOCKER_IMAGE_NAME="jnx-admin-dashboard-proxy"
|
DOCKER_IMAGE_NAME="zeitadler-dashboard-web"
|
||||||
|
|
||||||
# only allow to run this script as root
|
# only allow to run this script as root
|
||||||
if [ "$EUID" -ne 0 ]
|
if [ "$EUID" -ne 0 ]
|
||||||
|
|
34
nginx.conf
34
nginx.conf
|
@ -4,39 +4,7 @@ server {
|
||||||
location /api/ { # api server
|
location /api/ { # api server
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
proxy_http_version 1.0;
|
proxy_http_version 1.0;
|
||||||
proxy_pass http://jnx-admin-dashboard-server/;
|
proxy_pass http://zeitadler-dashboard-api/;
|
||||||
}
|
|
||||||
|
|
||||||
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://jnx-admin-dashboard-server/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://jnx-log-manager-server/;
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
location / { # frontend
|
||||||
|
|
Loading…
Reference in New Issue