Skip to content
GitLab
Explore
Sign in
libre.sh
website
Compare revisions
dd839821c2279e2a7376fea32badb604b6d79920 to 6fd3a5d5c8e36dc94b44ea83af9ffcd58c49bb06
Commits on Source (2)
feat: simplify caddy config
· c5f885c7
Hugo Renard
authored
Feb 24, 2023
c5f885c7
feat: add pod anti affinity
· 6fd3a5d5
Hugo Renard
authored
Feb 24, 2023
6fd3a5d5
Hide whitespace changes
Inline
Side-by-side
deploy/Caddyfile
View file @
6fd3a5d5
:80 {
@site {
path /
path /
index.html
path /assets*
}
handle @site {
route {
rewrite / /index.html
rewrite * /www-libre-sh{path}
}
rewrite / /index.html
reverse_proxy https://hot-objects.liiib.re {
header_up Host {upstream_hostport}
}
reverse_proxy
@site
https://hot-objects.liiib.re {
header_up Host {upstream_hostport}
rewrite /www-libre-sh{path
}
}
handle {
reverse_proxy http://127.0.0.1:8080
}
reverse_proxy http://127.0.0.1:8080
}
deploy/deployment.yaml
View file @
6fd3a5d5
...
...
@@ -15,6 +15,13 @@ spec:
app
:
www-libre-sh
app.kubernetes.io/component
:
web
spec
:
affinity
:
podAntiAffinity
:
requiredDuringSchedulingIgnoredDuringExecution
:
-
topologyKey
:
kubernetes.io/hostname
labelSelector
:
matchLabels
:
app
:
www-libre-sh
containers
:
-
name
:
caddy
image
:
caddy
...
...