services: use wildcard certificate

Should have done this a long time ago
This commit is contained in:
Antoine Martin 2021-07-13 00:57:33 +02:00
parent 64d479e2ce
commit f0e5e90c10
14 changed files with 37 additions and 21 deletions

View file

@ -171,7 +171,7 @@ in {
virtualHosts = {
"matrix.${domain}" = {
forceSSL = true;
enableACME = true;
useACMEHost = domain;
locations =
let
@ -199,7 +199,7 @@ in {
"matrix.${domain}_federation" = rec {
forceSSL = true;
serverName = "matrix.${domain}";
useACMEHost = serverName;
useACMEHost = domain;
locations."/".return = "404";
@ -216,7 +216,7 @@ in {
"${domain}" = {
forceSSL = true;
enableACME = true;
useACMEHost = domain;
locations."= /.well-known/matrix/server".extraConfig =
let
@ -243,7 +243,7 @@ in {
# Element Web app deployment
#
"chat.${domain}" = {
enableACME = true;
useACMEHost = domain;
forceSSL = true;
root = pkgs.element-web.override {