|
| 1 | +--- |
| 2 | +############################################################### |
| 3 | +# Authelia configuration # |
| 4 | +############################################################### |
| 5 | + |
| 6 | +# This secret can also be set using the env variables AUTHELIA_JWT_SECRET_FILE |
| 7 | +identity_validation: |
| 8 | + reset_password: |
| 9 | + jwt_secret: a_very_important_secret |
| 10 | + |
| 11 | +server: |
| 12 | + address: tcp://0.0.0.0:9091/ |
| 13 | + endpoints: |
| 14 | + authz: |
| 15 | + forward-auth: |
| 16 | + implementation: "ForwardAuth" |
| 17 | + |
| 18 | +log: |
| 19 | + level: debug |
| 20 | + |
| 21 | +totp: |
| 22 | + issuer: authelia.com |
| 23 | + |
| 24 | +# duo_api: |
| 25 | +# hostname: api-123456789.pygeoapi.local |
| 26 | +# integration_key: ABCDEF |
| 27 | +# # This secret can also be set using the env variables AUTHELIA_DUO_API_SECRET_KEY_FILE |
| 28 | +# secret_key: 1234567890abcdefghifjkl |
| 29 | + |
| 30 | +authentication_backend: |
| 31 | + password_reset: |
| 32 | + disable: false |
| 33 | + refresh_interval: 1m |
| 34 | + ldap: |
| 35 | + implementation: custom |
| 36 | + address: ldap://lldap:3890 |
| 37 | + timeout: 5s |
| 38 | + start_tls: false |
| 39 | + base_dn: dc=pygeoapi,dc=local |
| 40 | + additional_users_dn: ou=people |
| 41 | + users_filter: "(&({username_attribute}={input})(objectClass=person))" |
| 42 | + additional_groups_dn: ou=groups |
| 43 | + groups_filter: "(member={dn})" |
| 44 | + attributes: |
| 45 | + display_name: displayName |
| 46 | + username: uid |
| 47 | + group_name: cn |
| 48 | + mail: mail |
| 49 | + user: uid=admin,ou=people,dc=pygeoapi,dc=local |
| 50 | + password: "super_strong_ldap_password" ## change this |
| 51 | + |
| 52 | +access_control: |
| 53 | + default_policy: deny |
| 54 | + rules: |
| 55 | + - domain: "app.pygeoapi.local" |
| 56 | + policy: one_factor |
| 57 | + resources: |
| 58 | + - "^/api/collections/obs.*" |
| 59 | + subject: |
| 60 | + - "group:cartologic" |
| 61 | + |
| 62 | + - domain: "app.pygeoapi.local" |
| 63 | + policy: one_factor |
| 64 | + resources: |
| 65 | + - "^/api/collections/lakes.*" |
| 66 | + subject: |
| 67 | + - "group:geobeyond" |
| 68 | + |
| 69 | + - domain: "app.pygeoapi.local" |
| 70 | + policy: one_factor |
| 71 | + resources: |
| 72 | + - "^.*\\/api(?:\\/)?(?:\\?.*)?$" |
| 73 | + - "^/api/static/.*" |
| 74 | + - "^.*\\/api\\/collections(?:\\?.*)?$" |
| 75 | + - "^.*\\/api\\/processes(?:\\?.*)?$" |
| 76 | + - "^.*\\/api\\/jobs(?:\\?.*)?$" |
| 77 | + - "^.*\\/api\\/openapi(?:\\?.*)?$" |
| 78 | + - "^.*\\/api\\/conformance(?:\\?.*)?$" |
| 79 | + subject: |
| 80 | + - "group:geobeyond" |
| 81 | + - "group:cartologic" |
| 82 | + |
| 83 | +session: |
| 84 | + secret: unsecure_session_secret |
| 85 | + name: authelia_session |
| 86 | + same_site: "lax" |
| 87 | + inactivity: 5m |
| 88 | + expiration: 1h |
| 89 | + remember_me: 5M |
| 90 | + # Remove the `cookies` block if keeping `domain`, or vice versa |
| 91 | + domain: "pygeoapi.local" |
| 92 | + # cookies: |
| 93 | + # - domain: "pygeoapi.local" |
| 94 | + # authelia_url: "https://pygeoapi.local" |
| 95 | + # default_redirection_url: "https://app.pygeoapi.local/api" |
| 96 | + # name: "authelia_session" |
| 97 | + # same_site: "lax" |
| 98 | + # inactivity: "5m" |
| 99 | + # expiration: "1h" |
| 100 | + # remember_me: "1d" |
| 101 | + |
| 102 | + redis: |
| 103 | + host: redis |
| 104 | + port: 6379 |
| 105 | + |
| 106 | +regulation: |
| 107 | + max_retries: 3 |
| 108 | + find_time: 120 |
| 109 | + ban_time: 300 |
| 110 | + |
| 111 | +storage: |
| 112 | + encryption_key: you_must_generate_a_random_string_of_more_than_twenty_chars_and_configure_this |
| 113 | + local: |
| 114 | + path: /config/db.sqlite3 |
| 115 | + |
| 116 | +notifier: |
| 117 | + disable_startup_check: true |
| 118 | + filesystem: |
| 119 | + filename: /config/notification.txt |
0 commit comments