37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
http:
|
|
routers:
|
|
nextcloud:
|
|
rule: "Host(`nextcloud.hugowillaume.com`)"
|
|
entrypoints:
|
|
- "websecure"
|
|
service: nextcloud
|
|
middlewares:
|
|
- nextcloud-chain
|
|
tls:
|
|
certresolver: "myhttpchallenge"
|
|
|
|
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
|
|
# - url: "http://127.0.0.1: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"
|
|
|
|
https-redirect:
|
|
redirectscheme:
|
|
scheme: https
|
|
|
|
nextcloud-chain:
|
|
chain:
|
|
middlewares:
|
|
# - ... (e.g. rate limiting middleware)
|
|
- https-redirect
|
|
- nextcloud-secure-headers
|