From 24dd7d3e67ccf63675572bcf66957bd9b9ce6d8a Mon Sep 17 00:00:00 2001 From: Phil Date: Wed, 9 Oct 2024 12:29:07 -0600 Subject: [PATCH] moved gitea compose to template and added smtp config --- roles/docker/tasks/gitea.yml | 6 +++--- .../gitea-compose.yml => templates/gitea-compose.yml.j2} | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) rename roles/docker/{files/gitea-compose.yml => templates/gitea-compose.yml.j2} (54%) diff --git a/roles/docker/tasks/gitea.yml b/roles/docker/tasks/gitea.yml index 605aa10..470e868 100644 --- a/roles/docker/tasks/gitea.yml +++ b/roles/docker/tasks/gitea.yml @@ -5,9 +5,9 @@ loop: - /opt/stacks/gitea -- name: copy gitea compose file - ansible.builtin.copy: - src: gitea-compose.yml +- name: Template out the compose file + ansible.builtin.template: + src: glance-compose.yml.j2 dest: /opt/stacks/gitea/compose.yml owner: root mode: 644 diff --git a/roles/docker/files/gitea-compose.yml b/roles/docker/templates/gitea-compose.yml.j2 similarity index 54% rename from roles/docker/files/gitea-compose.yml rename to roles/docker/templates/gitea-compose.yml.j2 index 95b5bfe..6b0c07e 100644 --- a/roles/docker/files/gitea-compose.yml +++ b/roles/docker/templates/gitea-compose.yml.j2 @@ -6,6 +6,13 @@ services: environment: - USER_UID=1000 - USER_GID=1000 + - GITEA__mailer__ENABLED=true + - GITEA__mailer__FROM=git@updates.thesatelliteoflove.com + - GITEA__mailer__PROTOCOL=smtps + - GITEA__mailer__SMTP_ADDR=smtp.resend.com + - GITEA__mailer__SMTP_PORT=465 + - GITEA__mailer__USER=resend + - GITEA__mailer__PASSWD={{ resend_key }} restart: unless-stopped volumes: - gitea:/data @@ -14,7 +21,7 @@ services: ports: - 222:22 extra_hosts: - - 'auth.thesatelliteoflove.com:172.20.0.3' + - 'auth.thesatelliteoflove.com:172.20.0.5' volumes: gitea: driver: local