Migrate deprecated sslRedirect

Signed-off-by: hunhejj <hunhejj@gmail.com>
This commit is contained in:
hunhejj 2023-01-12 20:51:04 +01:00 коммит произвёл GitHub
Родитель d66002a409
Коммит afb231bc9a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -382,9 +382,11 @@ 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.headers]
hostsProxyHeaders = ["X-Forwarded-Host"]
sslRedirect = true
referrerPolicy = "same-origin"
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:
@ -392,7 +394,7 @@ Of course you need to modify `<your-nc-domain>` to the domain on which you want
```toml
[http.middlewares.chain-nc]
[http.middlewares.chain-nc.chain]
middlewares = [ "nc-middlewares-secure-headers"]
middlewares = [ "https-redirect", "nc-middlewares-secure-headers"]
```
---