SDNRHOST: controller
SDNRPORT: ${SDNC_REST_PORT}
SDNRWEBSOCKETPORT: ${SDNR_WEBSOCKET_PORT}
+ volumes:
+ - ./odlux/location.rules:/opt/bitnami/nginx/conf/server_blocks/location.rules
labels:
traefik.enable: true
traefik.http.routers.sdnc-web.entrypoints: websecure
--- /dev/null
+location ~ ^/$ {
+ return 301 " /odlux/index.html";
+}
+location ~ ^/help/$ {
+ try_files /help/$args.json $uri;
+}
+location ~ ^/transportpce {
+ resolver 127.0.0.11;
+ if ($request_uri ~* "/transportpce/(.*)") {
+ return 404;
+ }
+}
+location ~ ^/tiles/ {
+ resolver 1.1.1.1 ipv6=off;
+ if ($request_uri ~* "/tiles/(.*)") {
+ return 404;
+ }
+}
+location ~ ^/topology/ {
+ resolver 127.0.0.11;
+ return 404;
+}
+location / {
+ try_files $uri $uri/ @backend;
+}
+location /websocket {
+ proxy_pass http://controller:8182/websocket;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+}
+location @backend {
+ proxy_pass http://controller:8181;
+}
\ No newline at end of file
docker compose -f $SCRIPT_DIR/smo/apps/docker-compose.yaml down
docker compose -f $SCRIPT_DIR/smo/oam/docker-compose.yaml down
docker compose -f $SCRIPT_DIR/smo/common/docker-compose.yaml down
-docker compose -f $SCRIPT_DIR/infra/docker-compose.yaml up down
-
+docker compose -f $SCRIPT_DIR/infra/docker-compose.yaml down