Add mta-sts config

This commit is contained in:
Ivan R. 2023-08-19 19:41:37 +05:00
parent 5f4b6c8b8d
commit a13a134360
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
2 changed files with 29 additions and 0 deletions

View file

@ -40,10 +40,14 @@ in {
# https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient
locations."= /.well-known/matrix/client".extraConfig = mkWellKnown clientConfig;
};
# Nextcloud
"nc.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
};
# Jellyfin
"jf.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
@ -53,6 +57,14 @@ in {
};
};
};
# Mail: MTA-STS
"mta-sts.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
root = "/var/lib/mta-sts";
};
"matrix.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
@ -67,6 +79,8 @@ in {
"/_synapse/client".proxyPass = "http://127.0.0.1:8008";
};
};
# Photoprism
"pp.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
@ -77,6 +91,8 @@ in {
};
};
};
# Mastodon
"m.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;

View file

@ -53,3 +53,16 @@ registration_shared_secret: xxx
macaroon_secret_key: xxx
form_secret: xxx
```
## Mail
- /var/lib/mta-sts/.well-known/mta-sts.txt
```
version: STSv1
mode: enforce
max_age: 604800
mx: mx.comfycamp.space
```
The file must be available to the `nginx` user.