1
0
mirror of https://github.com/ArcticFoxes-net/Synapse-Ubuntu-ZFS synced 2024-11-17 16:11:33 -05:00
Synapse-Ubuntu-ZFS/README.md

16 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2023-08-25 16:17:37 -04:00
# Synapse-Ubuntu-ZFS
Server configurations for Ubuntu 22.04 running Synapse
This configuration does not include some hardening configurations, as those ~~are~~ were maintained [here](https://github.com/TommyTran732/Linux-Setup-Scripts/blob/2f5a5ab10a13035ab467bfcb6d95984d3050b27a/Ubuntu-22.04-Server.sh).
2023-08-25 16:17:37 -04:00
**Notes**:
2023-08-25 16:17:37 -04:00
- snap ufw blocks Docker by default. ArcticFoxes's Matrix server uses .deb ufw instead.
2023-09-08 18:04:33 -04:00
- Use the .deb certbot package so that you can apply systemd hardening.
2023-08-25 16:17:37 -04:00
- A lot of these configuration files use ArcticFoxes's domain. If you are adopting this to your own system, make sure that you replace them.
- The Certbot-OCSP-Fetcher script can be found [here](https://github.com/GrapheneOS/infrastructure/blob/main/certbot-ocsp-fetcher)
2023-09-08 11:19:50 -04:00
- You need to create a `postgres-socket` and add the `postgres` and `matrix-synapse` user to it.
2023-09-08 17:38:07 -04:00
- You need to create a `matrix-synapse-socket` and add the `matrix-synapse` and `nginx` user to it.
- Systemd overrides for NGINX and SSHD services are based on [GrapheneOS's configurations](https://github.com/GrapheneOS/infrastructure/tree/main/systemd/system).
- Systemd override for Synapse is based on Arch Linux's [matrix-synapse](https://gitlab.archlinux.org/archlinux/packaging/packages/matrix-synapse/-/blob/main/override-hardened.conf?ref_type=heads) package.
- The repolists of PostgreSQL and Docker have been modified so that they read GPG keys from `/usr/share/keyring` by default. Make sure that when you follow upstream's documentation on adding their GPG keys, you adjust the location. For PostgreSQL's GPG key, run `curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /usr/share/keyrings/postgresql-debian-repo.gpg >/dev/null`