moved gitea compose to template and added smtp config
This commit is contained in:
		@@ -5,9 +5,9 @@
 | 
				
			|||||||
  loop:
 | 
					  loop:
 | 
				
			||||||
    - /opt/stacks/gitea
 | 
					    - /opt/stacks/gitea
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: copy gitea compose file
 | 
					- name: Template out the compose file
 | 
				
			||||||
  ansible.builtin.copy:
 | 
					  ansible.builtin.template:
 | 
				
			||||||
    src: gitea-compose.yml
 | 
					    src: glance-compose.yml.j2
 | 
				
			||||||
    dest: /opt/stacks/gitea/compose.yml
 | 
					    dest: /opt/stacks/gitea/compose.yml
 | 
				
			||||||
    owner: root
 | 
					    owner: root
 | 
				
			||||||
    mode: 644
 | 
					    mode: 644
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,6 +6,13 @@ services:
 | 
				
			|||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      - USER_UID=1000
 | 
					      - USER_UID=1000
 | 
				
			||||||
      - USER_GID=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
 | 
					    restart: unless-stopped
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - gitea:/data
 | 
					      - gitea:/data
 | 
				
			||||||
@@ -14,7 +21,7 @@ services:
 | 
				
			|||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
      - 222:22
 | 
					      - 222:22
 | 
				
			||||||
    extra_hosts:
 | 
					    extra_hosts:
 | 
				
			||||||
      - 'auth.thesatelliteoflove.com:172.20.0.3'
 | 
					      - 'auth.thesatelliteoflove.com:172.20.0.5'
 | 
				
			||||||
volumes:
 | 
					volumes:
 | 
				
			||||||
  gitea:
 | 
					  gitea:
 | 
				
			||||||
    driver: local
 | 
					    driver: local
 | 
				
			||||||
		Reference in New Issue
	
	Block a user