diff --git a/caddy/Caddyfile b/caddy/Caddyfile index f0d0f03..bade99d 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -11,7 +11,7 @@ } route /repo/* { - reverse_proxy localhost:1212 + reverse_proxy repo-placeholder:80 } } diff --git a/docker-compose.yaml b/docker-compose.yaml index b62e262..9fde117 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -22,11 +22,19 @@ services: volumes: - caddy_data:/data - ./caddy:/etc/caddy - - ./var/www/html/repo:/repo restart: unless-stopped labels: - "io.containers.autoupdate=registry" + repo-placeholder: + image: docker.io/nginx:alpine + networks: + - am-d-model-network + expose: + - "80" + volumes: + - ./repo:/usr/share/nginx/html + networks: am-d-model-network: name: am-d-model-network diff --git a/src/lib/navigation.js b/src/lib/navigation.js index a6d95d3..a6635d3 100644 --- a/src/lib/navigation.js +++ b/src/lib/navigation.js @@ -5,7 +5,7 @@ export const navigation = { toHome: () => goto("/"), toAbout: () => goto("/about"), toContact: () => goto("/contact"), - // toRepository: () => window.location.href = "/repo", + toRepository: () => window.location.href = "/repo", to404: () => { throw error(404, 'Page not found'); } diff --git a/svelte.config.js b/svelte.config.js index 410d01c..563b9d8 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,6 +8,7 @@ const config = { }), kit: { paths: { + base: '', exclude: ['/repo'] }, adapter: adapter({