Traefik Nextcloud
ΠΠ»Ρ ΡΠ°Π±ΠΎΡΡ Nextcloud ΡΠ΅ΡΠ΅Π· Traefik Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ ΠΎΡΠΎΠ±ΡΡ ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΡ.
http:
middlewares:
nextcloud-secure-headers:
headers:
hostsProxyHeaders:
- "X-Forwarded-Host"
referrerPolicy: "same-origin"
customResponseHeaders:
X-Robots-Tag: "noindex, nofollow"
https-redirect:
redirectScheme:
scheme: https
permanent: true
nextcloud-chain:
chain:
middlewares:
- https-redirect
- nextcloud-secure-headers
routers:
nextcloud:
entrypoints:
- "https"
rule: "Host(`nextcloud.<domain>.ru`)"
middlewares:
- https-redirect
- nextcloud-secure-headers
tls:
domains:
- main: "nextcloud.<domain>.ru"
service: nextcloud
services:
nextcloud:
loadBalancer:
servers:
- url: "http://192.168.0.133:11000"
passHostHeader: true