From dca9b58e4f7a300cca34d884e2c44a9255f35ace Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Thu, 29 May 2025 16:48:29 +0200 Subject: [PATCH] Fix certificate path env name --- README.md | 30 +++++++++++++++--------------- hmdooris/AppConfig.py | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index fb54061..3a36182 100644 --- a/README.md +++ b/README.md @@ -4,21 +4,21 @@ All configuration is handled through environment variables. -| Name | Default | Description | -|---------------------------------|-------------------------------------------------------------------------|------------------------------------------------------------------------------------------| -| `HMDOORIS_ALLOWED_IPS` | - | List of IP addresses in CIDR notation that are allowed to control the locks. | -| `HMDOORIS_DISCOVERY_URL` | `http://localhost:8080/realms/testing/.well-known/openid-configuration` | OIDC configuration discovery URL. | -| `HMDOORIS_CCUJACK_URL` | `https://raspberrymatic:2122` | URL of the CCU Jack server. | -| `HMDOORIS_CCU_CERTIFICATE_PATH` | - | File of a private certificate, or `false`. | -| `HMDOORIS_CCUJACK_USERNAME` | - | Username in CCU Jack. | -| `HMDOORIS_CCUJACK_PASSWORD` | - | Password in CCU Jack. | -| `HMDOORIS_CLIENT_ID` | `hmdooris` | OIDC client ID. | -| `HMDOORIS_CLIENT_SECRET` | - | ODIC client secret for the confidential flow. | -| `HMDOORIS_LISTEN` | `127.0.0.1:3000` | Which IP and port to listen on. | -| `IDINVITE_OIDC_SCOPE` | `["openid", "email", "profile"]` | JSON list of OIDC scopes to request. The OIDC IDP will need to send the group attribute. | -| `IDINVITE_OIDC_USER_ATTR` | `email` | The attribute to use as the user ID. | -| `HMDOORIS_REQUIRES_GROUP` | - | Set to require users to be a member of this groups. | -| `HMDOORIS_URL` | `http://localhost:3000` | URL of the application, used to construct links to itself. | +| Name | Default | Description | +|-------------------------------------|-------------------------------------------------------------------------|------------------------------------------------------------------------------------------| +| `HMDOORIS_ALLOWED_IPS` | - | List of IP addresses in CIDR notation that are allowed to control the locks. | +| `HMDOORIS_DISCOVERY_URL` | `http://localhost:8080/realms/testing/.well-known/openid-configuration` | OIDC configuration discovery URL. | +| `HMDOORIS_CCUJACK_CERTIFICATE_PATH` | - | File of a private certificate, or `false`. | +| `HMDOORIS_CCUJACK_PASSWORD` | - | Password in CCU Jack. | +| `HMDOORIS_CCUJACK_URL` | `https://raspberrymatic:2122` | URL of the CCU Jack server. | +| `HMDOORIS_CCUJACK_USERNAME` | - | Username in CCU Jack. | +| `HMDOORIS_CLIENT_ID` | `hmdooris` | OIDC client ID. | +| `HMDOORIS_CLIENT_SECRET` | - | ODIC client secret for the confidential flow. | +| `HMDOORIS_LISTEN` | `127.0.0.1:3000` | Which IP and port to listen on. | +| `IDINVITE_OIDC_SCOPE` | `["openid", "email", "profile"]` | JSON list of OIDC scopes to request. The OIDC IDP will need to send the group attribute. | +| `IDINVITE_OIDC_USER_ATTR` | `email` | The attribute to use as the user ID. | +| `HMDOORIS_REQUIRES_GROUP` | - | Set to require users to be a member of this groups. | +| `HMDOORIS_URL` | `http://localhost:3000` | URL of the application, used to construct links to itself. | ### Required Group diff --git a/hmdooris/AppConfig.py b/hmdooris/AppConfig.py index d790909..48d42a9 100644 --- a/hmdooris/AppConfig.py +++ b/hmdooris/AppConfig.py @@ -28,7 +28,7 @@ class AppConfig: self.oidc_user_attr = getenv('IDINVITE_OIDC_USER_ATTR', 'email') self.requires_group = getenv('HMDOORIS_REQUIRES_GROUP', None) self.ccujack_url = getenv('HMDOORIS_CCUJACK_URL', 'https://raspberrymatic:2122') - self.ccujack_certificate_path = getenv('HMDOORIS_CCU_CERTIFICATE_PATH', None) + self.ccujack_certificate_path = getenv('HMDOORIS_CCUJACK_CERTIFICATE_PATH', None) self.ccujack_username = getenv('HMDOORIS_CCUJACK_USERNAME', None) self.ccujack_password = getenv('HMDOORIS_CCUJACK_PASSWORD', None)