after many diversions and forlorn pivot from copilot to claude, new infra/ structure contains group_vars and ansible vaults; requests added to dev and prod dependencies; apps.lyric.views and core
.settings both abandon django's send_mail(); instead incorporate requests to target Mailgun's HTTP API (DigitalOcean's SMTP blocker thwarted previous magic login link email attempts, but this issue has been resol ved with this commit)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
- hosts: all
|
||||
- hosts: staging
|
||||
|
||||
tasks:
|
||||
- name: Debug django_allowed_host
|
||||
debug:
|
||||
var: django_allowed_host
|
||||
|
||||
- name: Install docker
|
||||
ansible.builtin.apt:
|
||||
name: docker.io
|
||||
@@ -78,9 +82,11 @@
|
||||
env:
|
||||
DJANGO_DEBUG_FALSE: "1"
|
||||
DJANGO_SECRET_KEY: "{{ secret_key.content | b64decode }}"
|
||||
DJANGO_ALLOWED_HOST: "localhost,staging.earthmanrpg.me,www.earthmanrpg.me,dashboard.earthmanrpg.me,earthmanrpg.me,167.172.29.172"
|
||||
DJANGO_ALLOWED_HOST: "{{ django_allowed_host }}"
|
||||
DJANGO_DB_PATH: "/home/nonroot/db.sqlite3"
|
||||
EMAIL_HOST_PASSWORD: "{{ lookup('env', 'EMAIL_HOST_PASSWORD') }}"
|
||||
EMAIL_HOST_USER: "{{ email_host_user }}"
|
||||
EMAIL_HOST_PASSWORD: "{{ email_host_password }}"
|
||||
MAILGUN_API_KEY: "{{ mailgun_api_key }}"
|
||||
ports:
|
||||
80:8888 # container port 80 (standard http port) maps to server port 8888 (arbitrary internal port)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user