An open API service indexing awesome lists of open source software.

https://github.com/ironashram/mail-matrix-server

Contains automation and tooling to manage my self hosted services
https://github.com/ironashram/mail-matrix-server

ansible automation certbot cloudflare docker dovecot mailserver postfix self-hosted

Last synced: 12 months ago
JSON representation

Contains automation and tooling to manage my self hosted services

Awesome Lists containing this project

README

          

[![Run Ansible Playbook](https://github.com/ironashram/mail-matrix-server/actions/workflows/ansible.yaml/badge.svg)](https://github.com/ironashram/mail-matrix-server/actions/workflows/ansible.yaml)

# Mail/Matrix Server
This repo contains automation and tooling to manage my own mail/matrix server.

Automated SSL generation/renewal is included with Let'sencrypt CA via cerbot and Cloudflare DNS.

## Secrets

All secrets are stored in a private Hashicorp Vault instance and fetched with ansible lookups at runtime.

The ansible inventory itself is generated at runtime using the `add_host` trick.

This keeps the code clean, also allows me to make this repo public without security concerns.

Vault Authetication must be set via ENV variables before running the playbook, either by using a token or approle.

## Ansible

Single Tag
```
ansible-playbook -i inventory.yml configure.yml --tags matrix
```

Configure Everything
```
ansible-playbook -i inventory.yml configure.yml
```

## Credits

https://www.ansible.com/

https://www.vaultproject.io/

https://github.com/element-hq/synapse

https://github.com/docker-mailserver/docker-mailserver