From 8b322c0c2ef0ec6c9762e1bc070f043da4ea6d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Sun, 10 Dec 2023 20:44:52 +0100 Subject: [PATCH] [int] --- ansible/roles/hedgedoc/defaults/main.json | 5 ++++ ansible/roles/hedgedoc/info.md | 3 ++ ansible/roles/hedgedoc/tasks/main.json | 2 ++ .../roles/hedgedoc/templates/config.json.j2 | 28 +++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 ansible/roles/hedgedoc/defaults/main.json create mode 100644 ansible/roles/hedgedoc/info.md create mode 100644 ansible/roles/hedgedoc/tasks/main.json create mode 100644 ansible/roles/hedgedoc/templates/config.json.j2 diff --git a/ansible/roles/hedgedoc/defaults/main.json b/ansible/roles/hedgedoc/defaults/main.json new file mode 100644 index 0000000..9370b77 --- /dev/null +++ b/ansible/roles/hedgedoc/defaults/main.json @@ -0,0 +1,5 @@ +{ + "var_hedgedoc_session_secret": "session_secret", + "var_hedgedoc_database_path": "/var/hedgedoc/data.sqlite", + "var_hedgedoc_oauth2_provider_name": "external auth", +} diff --git a/ansible/roles/hedgedoc/info.md b/ansible/roles/hedgedoc/info.md new file mode 100644 index 0000000..e2c1fa2 --- /dev/null +++ b/ansible/roles/hedgedoc/info.md @@ -0,0 +1,3 @@ +## Verweise + +- [Projekt-Website](https://docs.hedgedoc.org/) diff --git a/ansible/roles/hedgedoc/tasks/main.json b/ansible/roles/hedgedoc/tasks/main.json new file mode 100644 index 0000000..0d4f101 --- /dev/null +++ b/ansible/roles/hedgedoc/tasks/main.json @@ -0,0 +1,2 @@ +[ +] diff --git a/ansible/roles/hedgedoc/templates/config.json.j2 b/ansible/roles/hedgedoc/templates/config.json.j2 new file mode 100644 index 0000000..d5f04cc --- /dev/null +++ b/ansible/roles/hedgedoc/templates/config.json.j2 @@ -0,0 +1,28 @@ +{ + "development": { + "domain": "localhost:3000", + "url": { + "addport": true + }, + "loglevel": "debug", + "sessionSecret": "{{var_hedgedoc_session_secret}}", + "db": { + "dialect": "sqlite", + "storage": "./db.hedgedoc.sqlite" + }, + "urlAddPort": false, + "protocolUseSSL": false, + "oauth2": { + "providerName": "authelia", + "clientId": "b45421efcb7b1e5672d9b2bc55b3fdb2b6c62f3a72668110bd38f77fa1242ece", + "clientSecret": "e8493098b9a280610a2ba9fa0b49f14035a9f048e8505cf4981f0555a2885655", + "scope": "openid email profile", + "userProfileUsernameAttr": "sub", + "userProfileDisplayNameAttr": "name", + "userProfileEmailAttr": "email", + "userProfileUrl": "http://authelia.local:9091/api/oidc/userinfo", + "tokenUrl": "http://authelia.local:9091/api/oidc/token", + "authorizationUrl": "http://authelia.local:9091/api/oidc/authorize" + } + } +}