Skip to content
Commits on Source (2)
:80 { :80 {
@site { @site {
path / path /index.html
path /assets* path /assets*
} }
handle @site { rewrite / /index.html
route {
rewrite / /index.html
rewrite * /www-libre-sh{path}
}
reverse_proxy https://hot-objects.liiib.re { reverse_proxy @site https://hot-objects.liiib.re {
header_up Host {upstream_hostport} 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: ...@@ -15,6 +15,13 @@ spec:
app: www-libre-sh app: www-libre-sh
app.kubernetes.io/component: web app.kubernetes.io/component: web
spec: spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
app: www-libre-sh
containers: containers:
- name: caddy - name: caddy
image: caddy image: caddy
......