let's try registered variables with VAPID keys
This commit is contained in:
parent
f7bd49571e
commit
6b24b411b1
|
@ -30,7 +30,22 @@
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
become: true
|
become: true
|
||||||
become_user: mastodon
|
become_user: mastodon
|
||||||
- name: Copy Mastodon .env.production
|
- name: Copy Mastodon .env.production the first time
|
||||||
|
template:
|
||||||
|
src: .env.production
|
||||||
|
dest: /home/mastodon/live/.env.production
|
||||||
|
become: true
|
||||||
|
become_user: mastodon
|
||||||
|
- name: Generate VAPID keys and register it
|
||||||
|
shell: cd /home/mastodon/live && /home/mastodon/.rbenv/shims/bundle exec rake mastodon:webpush:generate_vapid_key
|
||||||
|
register: VAPID_KEYS
|
||||||
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
|
args:
|
||||||
|
executable: /bin/bash
|
||||||
|
become: true
|
||||||
|
become_user: mastodon
|
||||||
|
- name: Copy Mastodon .env.production the second time
|
||||||
template:
|
template:
|
||||||
src: .env.production
|
src: .env.production
|
||||||
dest: /home/mastodon/live/.env.production
|
dest: /home/mastodon/live/.env.production
|
||||||
|
|
|
@ -27,10 +27,8 @@ SECRET_KEY_BASE={{ SECRET_KEY_BASE.stdout }}
|
||||||
OTP_SECRET={{ OTP_SECRET.stdout }}
|
OTP_SECRET={{ OTP_SECRET.stdout }}
|
||||||
|
|
||||||
# Web Push VAPID keys
|
# Web Push VAPID keys
|
||||||
# Generate with `web-push generate-vapid-keys` on Mastodon host and then
|
# Don't edit the two below, we get this from a registered variable
|
||||||
# fill the following out
|
{{ VAPID_KEYS.stdout }}
|
||||||
VAPID_PRIVATE_KEY=
|
|
||||||
VAPID_PUBLIC_KEY=
|
|
||||||
|
|
||||||
# All SMTP details, Mailgun and Sparkpost have free tiers
|
# All SMTP details, Mailgun and Sparkpost have free tiers
|
||||||
SMTP_SERVER=
|
SMTP_SERVER=
|
||||||
|
|
Loading…
Reference in New Issue