Fix problems (mailcow, typos, watchtower script)

Mailcow blocked login because "force_pw_update" was true
This commit is contained in:
Tobias Reisinger 2024-11-09 02:32:41 +01:00
parent 05e79ae90a
commit 3ce28b14b4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 7 additions and 6 deletions

View file

@ -10,6 +10,7 @@ resource "mailcow_mailbox" "services" {
full_name = each.value.mail full_name = each.value.mail
local_part = each.value.mail local_part = each.value.mail
password = random_password.mailcow_service_passwords[each.key].result password = random_password.mailcow_service_passwords[each.key].result
force_pw_update = false
imap_access = false imap_access = false
pop3_access = false pop3_access = false
sogo_access = false sogo_access = false

View file

@ -13,9 +13,9 @@ forgejo_svc:
forgejo_env: forgejo_env:
FORGEJO__database__DB_TYPE: postgres FORGEJO__database__DB_TYPE: postgres
FORGEJO__database__HOST: "{{ svc.db.host }}:{{ svc.db.port }}" FORGEJO__database__HOST: "{{ svc.db.host }}:{{ svc.db.port }}"
FORGEJO__database__NAME: "{{ opentofu.postgresql_service_roles.forgejo.database }}" FORGEJO__database__NAME: "{{ opentofu.postgresql_data.forgejo.database }}"
FORGEJO__database__USER: "{{ opentofu.postgresql_service_roles.forgejo.user }}" FORGEJO__database__USER: "{{ opentofu.postgresql_data.forgejo.user }}"
FORGEJO__database__PASSWD: "{{ opentofu.postgresql_service_roles.forgejo.pass }}" FORGEJO__database__PASSWD: "{{ opentofu.postgresql_data.forgejo.pass }}"
FORGEJO__database__SSL_MODE: verify-full FORGEJO__database__SSL_MODE: verify-full
FORGEJO__repository__ENABLE_PUSH_CREATE_USER: true FORGEJO__repository__ENABLE_PUSH_CREATE_USER: true
@ -52,7 +52,7 @@ forgejo_env:
FORGEJO__mailer__ENABLED: true FORGEJO__mailer__ENABLED: true
FORGEJO__mailer__PROTOCOL: smtp+starttls FORGEJO__mailer__PROTOCOL: smtp+starttls
FORGEJO__mailer__SMTP_ADDR: "{{ mailer.host }}" FORGEJO__mailer__SMTP_ADDR: "{{ mailer.host }}"
FORGEJO__mailer__SMTP_PORT: "{{ mailer.post }}" FORGEJO__mailer__SMTP_PORT: "{{ mailer.port }}"
FORGEJO__mailer__FROM: "git <{{ opentofu.mailcow_data.forgejo.address }}>" FORGEJO__mailer__FROM: "git <{{ opentofu.mailcow_data.forgejo.address }}>"
FORGEJO__mailer__USER: "{{ opentofu.mailcow_data.forgejo.address }}" FORGEJO__mailer__USER: "{{ opentofu.mailcow_data.forgejo.address }}"
FORGEJO__mailer__PASSWD: "{{ opentofu.mailcow_data.forgejo.password }}" FORGEJO__mailer__PASSWD: "{{ opentofu.mailcow_data.forgejo.password }}"

View file

@ -14,7 +14,7 @@ homebox_env:
homebox_compose: homebox_compose:
watchtower: update watchtower: update
image: ghcr.io/hay-kot/homebox:latest-rootless image: ghcr.io/sysadminsmedia/homebox:latest-rootless
volumes: volumes:
- data:/data - data:/data
file: file:

View file

@ -1,3 +1,3 @@
#!/usr/bin/env sh #!/usr/bin/env sh
docker compose run -e WATCHTOWER_RUN_ONCE=true -e WATCHTOWER_NOTIFICATIONS= watchtower docker compose run --rm -e WATCHTOWER_RUN_ONCE=true app