mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 21:41:57 +00:00
Multiple changes to fix routing
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
route /repo/* {
|
route /repo/* {
|
||||||
reverse_proxy localhost:1212
|
reverse_proxy repo-placeholder:80
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,11 +22,19 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- caddy_data:/data
|
- caddy_data:/data
|
||||||
- ./caddy:/etc/caddy
|
- ./caddy:/etc/caddy
|
||||||
- ./var/www/html/repo:/repo
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- "io.containers.autoupdate=registry"
|
- "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:
|
networks:
|
||||||
am-d-model-network:
|
am-d-model-network:
|
||||||
name: am-d-model-network
|
name: am-d-model-network
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export const navigation = {
|
|||||||
toHome: () => goto("/"),
|
toHome: () => goto("/"),
|
||||||
toAbout: () => goto("/about"),
|
toAbout: () => goto("/about"),
|
||||||
toContact: () => goto("/contact"),
|
toContact: () => goto("/contact"),
|
||||||
// toRepository: () => window.location.href = "/repo",
|
toRepository: () => window.location.href = "/repo",
|
||||||
to404: () => {
|
to404: () => {
|
||||||
throw error(404, 'Page not found');
|
throw error(404, 'Page not found');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ const config = {
|
|||||||
}),
|
}),
|
||||||
kit: {
|
kit: {
|
||||||
paths: {
|
paths: {
|
||||||
|
base: '',
|
||||||
exclude: ['/repo']
|
exclude: ['/repo']
|
||||||
},
|
},
|
||||||
adapter: adapter({
|
adapter: adapter({
|
||||||
|
|||||||
Reference in New Issue
Block a user