[Unit]
Description=Matrix Key Server
Requires=postgresql.service

[Service]
Type=simple
User=keyserver
Group=matrix
ExecStart=/opt/matrix/keyserver/matrix-key-server/bin/matrix-key-server -address="127.0.0.2" -port=8076 -domain="keys.matrix.liberta.casa" -postgres="postgres://$USER:$PASS@$SERVER/$DB?sslmode=$SSL"

[Install]
WantedBy=multi-user.target