Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plausible add mail sending functionality #1194

Merged
merged 1 commit into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion group_vars/plausible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ docker_service_state: started
docker_service_enabled: true

# Plausible
plausible_lock_register: true
plausible_lock_register: invite_only
plausible_from_mail: [email protected]

plausible_smtp_host: smtp.informatik.uni-freiburg.de
plausible_smtp_username: "{{ smtp_username }}"
plausible_smtp_password: "{{ smtp_password }}"
plausible_smtp_port: 587
# Certbot
certbot_auth_method: --webroot
certbot_well_known_root: /srv/nginx/_well-known_root
Expand Down
8 changes: 8 additions & 0 deletions roles/usegalaxy-eu.plausible/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
group: root
mode: '0640'

- name: Template config for mail
template:
src: plausible-mail.j2
dest: "{{ plausible_dir }}/plausible-mail-conf.env"
owner: root
group: root
mode: '0640'

- name: Create and start services
docker_compose:
project_src: "{{ plausible_dir }}"
Expand Down
4 changes: 4 additions & 0 deletions roles/usegalaxy-eu.plausible/templates/plausible-mail.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RELAY_HOST="{{ plausible_smtp_host }}"
RELAY_PORT="{{ plausible_smtp_port }}"
RELAY_USERNAME="{{ plausible_smtp_username }}"
RELAY_PASSWORD="{{ plausible_smtp_password }}"
1 change: 1 addition & 0 deletions roles/usegalaxy-eu.plausible/templates/plausible.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ADMIN_USER_PWD="{{ plausible_admin_password }}"
BASE_URL="https://plausible.galaxyproject.eu"
SECRET_KEY_BASE="{{ plausible_secret_key }}"
DISABLE_REGISTRATION={{ plausible_lock_register }}
MAILER_EMAIL="{{ plausible_from_mail }}"
Loading