Fix some issues with mail

This commit is contained in:
Ivan R. 2024-10-19 00:11:40 +05:00
parent 304b9c3601
commit b487698693
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
4 changed files with 8 additions and 9 deletions

View file

@ -5,3 +5,4 @@
postgresql_password: "{{ postgresql_users.comfycamp }}" postgresql_password: "{{ postgresql_users.comfycamp }}"
jwt_secret: "{{ comfycamp_jwt_secret }}" jwt_secret: "{{ comfycamp_jwt_secret }}"
secret_key_base: "{{ comfycamp_secret_key_base }}" secret_key_base: "{{ comfycamp_secret_key_base }}"
smtp_password: "{{ mail_users['comfycamp@comfycamp.space'] }}"

View file

@ -5,7 +5,7 @@
state: directory state: directory
owner: root owner: root
group: root group: root
mode: 1770 mode: "1700"
- name: Copy comfycamp config - name: Copy comfycamp config
become: true become: true
ansible.builtin.template: ansible.builtin.template:
@ -13,16 +13,14 @@
dest: /etc/comfycamp/.env dest: /etc/comfycamp/.env
owner: root owner: root
group: root group: root
mode: '0660' mode: "0600"
- name: Create comfycamp container - name: Create comfycamp container
become: true become: true
community.docker.docker_container: community.docker.docker_container:
name: comfycamp name: comfycamp
image: git.comfycamp.space/lumin/comfycamp:v1.1.7 image: git.comfycamp.space/lumin/comfycamp:v1.1.16
env_file: /etc/comfycamp/.env env_file: /etc/comfycamp/.env
networks: networks:
- name: postgresql - name: postgresql
- name: haproxy - name: haproxy
ports:
- 127.0.0.1:3006:4000
restart_policy: unless-stopped restart_policy: unless-stopped

View file

@ -2,9 +2,8 @@ PHX_HOST=comfycamp.space
DATABASE_URL=postgres://{{ postgresql_user }}:{{ postgresql_password }}@postgresql:5432/comfycamp DATABASE_URL=postgres://{{ postgresql_user }}:{{ postgresql_password }}@postgresql:5432/comfycamp
SECRET_KEY_BASE={{ secret_key_base }} SECRET_KEY_BASE={{ secret_key_base }}
SMTP_RELAY=comfycamp.space SMTP_RELAY=comfycamp.space
SMTP_USERNAME=admin@comfycamp.space SMTP_FROM=comfycamp@comfycamp.space
SMTP_USERNAME=comfycamp@comfycamp.space
SMTP_PASSWORD={{ smtp_password }} SMTP_PASSWORD={{ smtp_password }}
SMTP_SSL=true SMTP_PORT=587
SMTP_TLS=always
SMTP_PORT=465
JWT_SECRET={{ jwt_secret }} JWT_SECRET={{ jwt_secret }}

View file

@ -24,6 +24,7 @@ SMTP_PORT={{ smtp_port }}
SMTP_LOGIN={{ smtp_login }} SMTP_LOGIN={{ smtp_login }}
SMTP_PASSWORD={{ smtp_password }} SMTP_PASSWORD={{ smtp_password }}
SMTP_FROM_ADDRESS={{ smtp_from_address }} SMTP_FROM_ADDRESS={{ smtp_from_address }}
SMTP_TLS=true
S3_ENABLED=true S3_ENABLED=true
S3_ENDPOINT={{ s3_endpoint }} S3_ENDPOINT={{ s3_endpoint }}