add ldap variables

This commit is contained in:
weeman 2021-09-15 19:16:52 +02:00
parent dd2e11392b
commit 84ac2a7462
Signed by: weeman
GPG Key ID: 34F0524D4DA694A1
3 changed files with 15 additions and 1 deletions

View File

@ -21,3 +21,8 @@ SPDX-License-Identifier: AGPL-3.0-or-later
| `ki_db_image` | Datenbank-Image | `mariadb:10.6.3` | | `ki_db_image` | Datenbank-Image | `mariadb:10.6.3` |
| `ki_db_root_password` | KI DB Root Passwort | - | | `ki_db_root_password` | KI DB Root Passwort | - |
| `ki_db_password` | KI DB Anwendungspasswort | - | | `ki_db_password` | KI DB Anwendungspasswort | - |
| `ki_auth` | Authentifizierungsmethode [`file`](https://git.wtf-eg.de/kompetenzinventar/ki-backend/src/branch/main/data/auth.yml) oder `ldap` | `file` |
| `ki_ldap_url` | LDAP Server URL | `ldaps://idp01.wtf-eg.net:636` |
| `ki_ldap_auth_user` | LDAP Login Benutzer | - |
| `ki_ldap_auth_password` | LDAP Login Passwort | - |
| `ki_ldap_base_dn` | Basis DN | `ou=people,dc=wtf-eg,dc=de` |

View File

@ -6,3 +6,8 @@ ki_backend_image: registry.wtf-eg.net/ki-backend:latest
ki_backend_uri: https://ki-wtf-eg.de/api ki_backend_uri: https://ki-wtf-eg.de/api
ki_backend_port: 13338 ki_backend_port: 13338
ki_db_image: mariadb:10.6.3 ki_db_image: mariadb:10.6.3
ki_auth: file
ki_ldap_url: ldaps://idp01.wtf-eg.net:636
ki_ldap_auth_user: ""
ki_ldap_auth_password: ""
ki_ldap_base_dn: ou=people,dc=wtf-eg,dc=de

View File

@ -19,7 +19,11 @@ services:
SQLALCHEMY_DATABASE_URI: "mariadb+pymysql://ki:{{ ki_db_password }}@ki_db:3306/ki" SQLALCHEMY_DATABASE_URI: "mariadb+pymysql://ki:{{ ki_db_password }}@ki_db:3306/ki"
FLASK_ENV: "development" FLASK_ENV: "development"
KI_LOGLEVEL: "10" KI_LOGLEVEL: "10"
KI_AUTH: "file" KI_AUTH: "ldap"
KI_LDAP_URL: "{{ ki_ldap_url }}"
KI_LDAP_AUTH_USER: "{{ ki_ldap_auth_user }}"
KI_LDAP_AUTH_PASSWORD: "{{ ki_ldap_auth_password }}"
KI_LDAP_BASE_DN: "{{ ki_ldap_base_dn }}"
CORS_ORIGINS: "{{ ki_frontend_uri }}" CORS_ORIGINS: "{{ ki_frontend_uri }}"
volumes: volumes:
- ki_data:/app/data/ - ki_data:/app/data/