Skip to content
Commits on Source (2)
: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
}
......@@ -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
......