diff --git a/docker_compose_applications/reverse-proxy/compose.yaml b/docker_compose_applications/reverse-proxy/compose.yaml index 48fa0b6..261341a 100644 --- a/docker_compose_applications/reverse-proxy/compose.yaml +++ b/docker_compose_applications/reverse-proxy/compose.yaml @@ -14,6 +14,7 @@ services: - ./Caddyfile:/etc/caddy/Caddyfile:ro - ./sites/:/etc/caddy/sites/:ro - /ansible_docker_compose/project_data/reverse-proxy/caddy/data:/data + - journex_frontend_dist:/srv/journex:ro env_file: - .env networks: @@ -22,3 +23,7 @@ services: networks: caddy_net: name: caddy_net + +volumes: + journex_frontend_dist: + name: journex_frontend_dist diff --git a/docker_compose_applications/reverse-proxy/sites/oauthed.caddy b/docker_compose_applications/reverse-proxy/sites/oauthed.caddy index b98d1cb..a67ca2c 100644 --- a/docker_compose_applications/reverse-proxy/sites/oauthed.caddy +++ b/docker_compose_applications/reverse-proxy/sites/oauthed.caddy @@ -52,3 +52,25 @@ enricher.cortex.consider-funding.de { } } } + +# cf-journex (static files from shared volume) +journex.cortex.consider-funding.de { + import oauth2 journex.cortex.consider-funding.de { + route { + @apiExact path /api + redir @apiExact /api/ + + handle_path /api/* { + reverse_proxy journex-backend:7000 + } + + handle /uploads/* { + reverse_proxy journex-backend:7000 + } + + root * /srv/journex + try_files {path} /index.html + file_server + } + } +} diff --git a/inventories/hetzner/host_vars/cit-docker-host.yaml b/inventories/hetzner/host_vars/cit-docker-host.yaml index fb69fd4..4442369 100644 --- a/inventories/hetzner/host_vars/cit-docker-host.yaml +++ b/inventories/hetzner/host_vars/cit-docker-host.yaml @@ -11,5 +11,5 @@ docker_compose__projects: files_directory: ../docker_compose_applications/transcript-pseudomizer-api - name: transcript-pseudomizer-frontend files_directory: ../docker_compose_applications/transcript-pseudomizer-frontend - # - name: cf-journex - # files_directory: ../docker_compose_applications/cf-journex + - name: cf-journex + files_directory: ../docker_compose_applications/cf-journex