diff --git a/config/caddy/Caddyfile b/config/caddy/Caddyfile index 827b802..ef88462 100644 --- a/config/caddy/Caddyfile +++ b/config/caddy/Caddyfile @@ -1,17 +1,43 @@ +# http://loki { +# root * /usr/share/caddy +# file_server browse +# } + +# http://loki/config { +# reverse_proxy /config/* foxglove:8080 +# } + +# http://browse.loki { +# root * /usr/share/caddy +# file_server browse +# } + +# http://config.loki { +# reverse_proxy localhost:1337 +# } + +# http://control.loki { +# reverse_proxy foxglove:8080 +# } + http://loki { root * /usr/share/caddy file_server browse + + handle_path /config* { + #rewrite * / + reverse_proxy olivetin:1337 + } + + handle_path /viz* { + #rewrite * / + reverse_proxy foxglove:8080 + } } -http://browse.loki { - root * /usr/share/caddy - file_server browse -} - -http://config.loki { - reverse_proxy olivetin:1337 -} - -http://control.loki { - reverse_proxy foxglove:8080 -} +# http://loki/config { +# handle_path /config* { +# rewrite * / +# reverse_proxy olivetin:1337 +# } +# } diff --git a/config/npm/database.sqlite b/config/npm/database.sqlite index 77b2214..09a55a7 100644 Binary files a/config/npm/database.sqlite and b/config/npm/database.sqlite differ diff --git a/config/npm/nginx/proxy_host/3.conf b/config/npm/nginx/proxy_host/3.conf index 0dbb4cc..f6a7346 100644 --- a/config/npm/nginx/proxy_host/3.conf +++ b/config/npm/nginx/proxy_host/3.conf @@ -56,4 +56,3 @@ listen [::]:80; # Custom include /data/nginx/custom/server_proxy[.]conf; } - diff --git a/docker-compose.yaml b/docker-compose.yaml index 6595f2b..2dcc6cc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -162,6 +162,8 @@ services: # - /var/lib/docker:/var/lib/docker - ~/.ssh/id_rsa:/root/.ssh/id_rsa + networks: + - caddy_network ports: - "1337:1337" restart: unless-stopped @@ -225,6 +227,8 @@ services: image: ghcr.io/foxglove/studio:latest depends_on: - foxglove_bridge + networks: + - caddy_network ports: - 8080:8080 volumes: @@ -245,27 +249,31 @@ services: # Core Services for Web Management # ################################################################################################################################ - # npm: # nginx proxy manager for reverse proxying the webservices - # #user "bjoern.ellensohn@unileoben.ac.at" - # #password "cpsloki_npm" - # image: 'jc21/nginx-proxy-manager:latest' - # restart: unless-stopped - # ports: - # - '80:80' - # - '81:81' - # - '443:443' - # extra_hosts: - # - "host.docker.internal:host-gateway" - # #network_mode: host - # volumes: - # - ./config/npm:/data - # - ./config/npm/letsencrypt:/etc/letsencrypt - # depends_on: - # - foxglove - # - olivetin + npm: # nginx proxy manager for reverse proxying the webservices + #user "bjoern.ellensohn@unileoben.ac.at" cpsAdmin@unileoben.ac.at + #password "cpsloki_npm" + image: 'jc21/nginx-proxy-manager:latest' + restart: unless-stopped + networks: + - caddy_network + ports: + - '80:80' + - '81:81' + - '443:443' + extra_hosts: + - "host.docker.internal:host-gateway" + #network_mode: host + volumes: + - npm-data:/data + - npm-letsencrypt:/etc/letsencrypt + depends_on: + - foxglove + - olivetin caddy: image: caddy:latest + networks: + - caddy_network ports: - "80:80" - "443:443" @@ -280,6 +288,10 @@ services: ################################################################################################################################ # Docker related extra stuff # ################################################################################################################################ -networks: {} +networks: + caddy_network: + driver: bridge volumes: - portainer_data: \ No newline at end of file + portainer_data: + npm-data: + npm-letsencrypt: \ No newline at end of file