Skip to content
Snippets Groups Projects
Commit efd085ec authored by void's avatar void
Browse files

set api token and user mysql

parent a6f7b7c3
No related branches found
No related tags found
2 merge requests!119Revert "new var for dmarc rua reporting address",!55Mailsetup Migration from mailcow to mailu
......@@ -4,6 +4,8 @@
with_items:
- { path: "{{ basedir }}/secrets/mailu_secret_key", length: 32 }
- { path: "{{ basedir }}/secrets/mailu_admin_pass", length: 32 }
- { path: "{{ basedir }}/secrets/mailu_api_token", length: 32 }
- { path: "{{ basedir }}/secrets/mailu_db_pass", length: 28 }
- { path: "{{ basedir }}/secrets/hyperkitty_api_key", length: 28 }
- { path: "{{ basedir }}/secrets/mailman_db_pass", length: 28 }
- { path: "{{ basedir }}/secrets/mailman_secret_key", length: 28 }
......@@ -25,6 +27,7 @@
with_items:
- "{{ basedir }}"
- "{{ basedir }}/secrets"
- "{{ basedir }}/db"
- "{{ basedir }}/mailu"
- "{{ basedir }}/mailman-core"
- "{{ basedir }}/mailman-core/var"
......
......@@ -177,6 +177,17 @@ services:
depends_on:
- front
db:
image: mariadb:10.5
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- "{{ basedir }}/db:/var/lib/mysql"
environment:
- MYSQL_DATABASE=mailudb
- MYSQL_USER=mailu
- MYSQL_PASSWORD={{ mailu_db_pass }}
- MYSQL_ROOT_PASSWORD={{ mysql_root_pass }}
# Additional Services: mailman
mailman-core:
container_name: mailman-core
......
......@@ -7,6 +7,12 @@ INITIAL_ADMIN_DOMAIN={{ domain }}
INITIAL_ADMIN_PW={{ mailu_admin_pass }}
INITIAL_ADMIN_MODE=ifmissing
###################################
# Database Settings
###################################
SQLALCHEMY_DATABASE_URI=mysql://mailu:{{ mailu_db_pass }}@db/mailudb?charset=utf8mb4
###################################
# Common configuration variables
###################################
......@@ -161,4 +167,4 @@ DEFAULT_SPAM_THRESHOLD=80
# API token required for authenticating to the RESTful API.
# This is a mandatory setting for using the RESTful API.
API_TOKEN=
API_TOKEN={{ mailu_api_token }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment