Merge pull request #1733 from hunhejj/patch-3

Fix the Traefik example
This commit is contained in:
Simon L 2023-01-12 23:26:08 +01:00 committed by GitHub
commit b128dbd6a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -382,9 +382,12 @@ Of course you need to modify `<your-nc-domain>` to the domain on which you want
[http.middlewares.nc-middlewares-secure-headers] [http.middlewares.nc-middlewares-secure-headers]
[http.middlewares.nc-middlewares-secure-headers.headers] [http.middlewares.nc-middlewares-secure-headers.headers]
hostsProxyHeaders = ["X-Forwarded-Host"] hostsProxyHeaders = ["X-Forwarded-Host"]
sslRedirect = true
referrerPolicy = "same-origin" referrerPolicy = "same-origin"
X-Robots-Tag = "none" [http.middlewares.nc-middlewares-secure-headers.headers.customResponseHeaders]
X-Robots-Tag = "none"
[http.middlewares.https-redirect.redirectscheme]
scheme = "https"
``` ```
3. Add to the bottom of the `middleware-chains.toml` file in the Traefik rules folder the following content: 3. Add to the bottom of the `middleware-chains.toml` file in the Traefik rules folder the following content:
@ -392,7 +395,7 @@ Of course you need to modify `<your-nc-domain>` to the domain on which you want
```toml ```toml
[http.middlewares.chain-nc] [http.middlewares.chain-nc]
[http.middlewares.chain-nc.chain] [http.middlewares.chain-nc.chain]
middlewares = [ "nc-middlewares-secure-headers"] middlewares = [ "https-redirect", "nc-middlewares-secure-headers"]
``` ```
--- ---