diff options
Diffstat (limited to 'hosts/surtr/matrix/default.nix')
-rw-r--r-- | hosts/surtr/matrix/default.nix | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/hosts/surtr/matrix/default.nix b/hosts/surtr/matrix/default.nix index 24a78853..842c6c56 100644 --- a/hosts/surtr/matrix/default.nix +++ b/hosts/surtr/matrix/default.nix | |||
@@ -141,18 +141,6 @@ with lib; | |||
141 | }; | 141 | }; |
142 | }; | 142 | }; |
143 | }; | 143 | }; |
144 | |||
145 | virtualHosts."admin.synapse.li" = { | ||
146 | forceSSL = true; | ||
147 | sslCertificate = "/run/credentials/nginx.service/admin.synapse.li.pem"; | ||
148 | sslCertificateKey = "/run/credentials/nginx.service/admin.synapse.li.key.pem"; | ||
149 | sslTrustedCertificate = "/run/credentials/nginx.service/admin.synapse.li.chain.pem"; | ||
150 | extraConfig = '' | ||
151 | add_header Strict-Transport-Security "max-age=63072000" always; | ||
152 | ''; | ||
153 | |||
154 | root = pkgs.synapse-admin; | ||
155 | }; | ||
156 | }; | 144 | }; |
157 | 145 | ||
158 | security.acme.domains = { | 146 | security.acme.domains = { |
@@ -164,14 +152,6 @@ with lib; | |||
164 | ''; | 152 | ''; |
165 | }; | 153 | }; |
166 | }; | 154 | }; |
167 | "admin.synapse.li" = { | ||
168 | zone = "synapse.li"; | ||
169 | certCfg = { | ||
170 | postRun = '' | ||
171 | ${pkgs.systemd}/bin/systemctl try-restart nginx.service | ||
172 | ''; | ||
173 | }; | ||
174 | }; | ||
175 | "turn.synapse.li" = { | 155 | "turn.synapse.li" = { |
176 | zone = "synapse.li"; | 156 | zone = "synapse.li"; |
177 | certCfg = { | 157 | certCfg = { |
@@ -201,10 +181,6 @@ with lib; | |||
201 | "element.synapse.li.key.pem:${config.security.acme.certs."element.synapse.li".directory}/key.pem" | 181 | "element.synapse.li.key.pem:${config.security.acme.certs."element.synapse.li".directory}/key.pem" |
202 | "element.synapse.li.pem:${config.security.acme.certs."element.synapse.li".directory}/fullchain.pem" | 182 | "element.synapse.li.pem:${config.security.acme.certs."element.synapse.li".directory}/fullchain.pem" |
203 | "element.synapse.li.chain.pem:${config.security.acme.certs."element.synapse.li".directory}/chain.pem" | 183 | "element.synapse.li.chain.pem:${config.security.acme.certs."element.synapse.li".directory}/chain.pem" |
204 | |||
205 | "admin.synapse.li.key.pem:${config.security.acme.certs."admin.synapse.li".directory}/key.pem" | ||
206 | "admin.synapse.li.pem:${config.security.acme.certs."admin.synapse.li".directory}/fullchain.pem" | ||
207 | "admin.synapse.li.chain.pem:${config.security.acme.certs."admin.synapse.li".directory}/chain.pem" | ||
208 | ]; | 184 | ]; |
209 | }; | 185 | }; |
210 | }; | 186 | }; |