feat(remark42): oauth support
This commit is contained in:
4 files changed
+22
-8
No files matched your search
@@ -1,6 +1,2 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: docker
|
||||
tags:
|
||||
- docker
|
||||
- depends
|
||||
dependencies: []
|
||||
@@ -16,25 +16,36 @@ Configure the role.
|
||||
|
||||
```yml
|
||||
# https://hub.docker.com/r/umputun/remark42
|
||||
remark42_image: umputun/remark42:v1.14.0
|
||||
remark42_image: umputun/remark42:v1.16.4
|
||||
remark42_description: Comments for website # default: Remark42
|
||||
remark42_volume_name: remark_data01
|
||||
remark42_hostname: remark01
|
||||
remark42_url: comment.example.com
|
||||
remark42_secret: "{{ vault_remark42_secret }}"
|
||||
remark42_site: "blog.example.com"
|
||||
|
||||
remark42_auth_anonymous: "true" # default: false
|
||||
remark42_auth_email_enabled: "true" # default: false
|
||||
remark42_auth_email_from: "noreply@example.com"
|
||||
remark42_auth_github_key: ""
|
||||
remark42_auth_github_secret: "{{ vault_remark42_github_secret }}"
|
||||
|
||||
remark42_smtp_host: mail.example.com
|
||||
remark42_smtp_port: "587"
|
||||
remark42_smtp_username: bot@example.com
|
||||
remark42_smtp_password: "{{ vault_remark42_smtp_password }}"
|
||||
remark42_notify_email_from: noreply@example.com
|
||||
|
||||
remark42_admin_shared_email: admin@example.com
|
||||
remark42_admin_shared_id: github_XXX
|
||||
remark42_notify_email_from: noreply@example.com
|
||||
|
||||
remark42_auth_custom_name: codeberg
|
||||
remark42_auth_custom_cid: 608c5d90-03e3-4e54-af50-fc74bceb06b0
|
||||
remark42_auth_custom_csec: # default: "{{ vault_remark42_auth_custom_csec }}"
|
||||
remark42_auth_custom_auth_url: https://codeberg.org/login/oauth/authorize
|
||||
remark42_auth_custom_token_url: https://codeberg.org/login/oauth/access_token
|
||||
remark42_auth_custom_info_url: https://codeberg.org/login/oauth/userinfo
|
||||
remark42_auth_custom_scopes: read:user
|
||||
remark42_volume_backup_set: # See restic_backup_set var in role restic
|
||||
```
|
||||
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
remark42_description: Remark42
|
||||
remark42_auth_anonymous: "false"
|
||||
remark42_auth_email_enabled: "false"
|
||||
remark42_auth_custom_csec: "{{ vault_remark42_auth_custom_csec }}"
|
||||
@@ -37,7 +37,13 @@
|
||||
NOTIFY_EMAIL_ADMIN: "true"
|
||||
BACKUP_PATH: /srv/var/backup
|
||||
AUTH_SAME_SITE: none
|
||||
# DEBUG: "true"
|
||||
AUTH_CUSTOM_NAME: "{{ remark42_auth_custom_name }}"
|
||||
AUTH_CUSTOM_CID: "{{ remark42_auth_custom_cid }}"
|
||||
AUTH_CUSTOM_CSEC: "{{ remark42_auth_custom_csec }}"
|
||||
AUTH_CUSTOM_AUTH_URL: "{{ remark42_auth_custom_auth_url }}"
|
||||
AUTH_CUSTOM_TOKEN_URL: "{{ remark42_auth_custom_token_url }}"
|
||||
AUTH_CUSTOM_INFO_URL: "{{ remark42_auth_custom_info_url }}"
|
||||
AUTH_CUSTOM_SCOPES: "{{ remark42_auth_custom_scopes }}"
|
||||
volumes:
|
||||
- "{{ remark42_volume_name }}:/srv/var"
|
||||
networks:
|
||||
|
||||
Reference in new issue
Block a user