--- title: description: date: 2023-04-22 lang: zh-tw tags: - 樹莓派 - Linux - docker --- # 樹莓派筆記- Authelia:開啟二段驗證 ## 更改Authelia 配置文件 到掛載的資料夾`./authelia/config`找`configuration.yml` 新增一下幾行 ```yml= totp: issuer: authelia.com period: 30 skew: 1 webauthn: disable: false display_name: Authelia attestation_conveyance_preference: indirect user_verification: preferred timeout: 60s #ntp校時,供2次驗證使用 ntp: address: "time.cloudflare.com:123" version: 3 max_desync: 3s disable_startup_check: false disable_failure: false ``` 記得設定 SMTP 服務 ## Ref * https://www.authelia.com/configuration/second-factor/introduction/ * https://medium.com/starbugs/totp-2fa-algorithm-in-10-mins-25acc3c35df9