Add traefik and nextcloud config

This commit is contained in:
2026-07-20 11:46:40 +03:00
parent ddf0ca0895
commit a98c408f02
4 changed files with 121 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
http:
routers:
nextcloud:
rule: "Host(`nc.example.com`)" # Указываем свой домен для nectcloud
entrypoints:
- "https"
service: nextcloud
middlewares:
- nextcloud-chain
tls:
certresolver: "challenge"
services:
nextcloud:
loadBalancer:
servers:
- url: "http://nextcloud-aio-apache:11000" # Adjust to match APACHE_PORT and APACHE_IP_BINDING. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#adapting-the-sample-web-server-configurations-below
middlewares:
nextcloud-secure-headers:
headers:
hostsProxyHeaders:
- "X-Forwarded-Host"
referrerPolicy: "same-origin"
customRequestHeaders:
X-Forwarded-Proto: "https"
https-redirect:
redirectscheme:
scheme: https
nextcloud-chain:
chain:
middlewares:
# - ... (e.g. rate limiting middleware)
- https-redirect
- nextcloud-secure-headers