aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites/tools/mastodon.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-16 23:23:05 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-17 00:04:47 +0200
commit7df420c27ebe7daaa4fd099c457ce9a9075b840e (patch)
treeec41e01e9331652c09dc4f2ed4186ce5952c3882 /nixops/modules/websites/tools/mastodon.nix
parent52f45eb051df228955add90ca62de66a7ed8af34 (diff)
downloadNix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.tar.gz
Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.tar.zst
Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.zip
Add certificate creation and handling to websites
Diffstat (limited to 'nixops/modules/websites/tools/mastodon.nix')
-rw-r--r--nixops/modules/websites/tools/mastodon.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixops/modules/websites/tools/mastodon.nix b/nixops/modules/websites/tools/mastodon.nix
index 38b2107..ffd59dd 100644
--- a/nixops/modules/websites/tools/mastodon.nix
+++ b/nixops/modules/websites/tools/mastodon.nix
@@ -67,13 +67,13 @@ in {
67 services.websites.tools.modules = [ 67 services.websites.tools.modules = [
68 "headers" "proxy" "proxy_wstunnel" "proxy_http" 68 "headers" "proxy" "proxy_wstunnel" "proxy_http"
69 ]; 69 ];
70 security.acme.certs."eldiron".extraDomains."mastodon.immae.eu" = null;
71 system.extraSystemBuilderCmds = '' 70 system.extraSystemBuilderCmds = ''
72 mkdir -p $out/webapps 71 mkdir -p $out/webapps
73 ln -s ${mcfg.workdir}/public/ $out/webapps/tools_mastodon 72 ln -s ${mcfg.workdir}/public/ $out/webapps/tools_mastodon
74 ''; 73 '';
75 services.websites.tools.vhostConfs.mastodon = { 74 services.websites.tools.vhostConfs.mastodon = {
76 certName = "eldiron"; 75 certName = "eldiron";
76 addToCerts = true;
77 hosts = ["mastodon.immae.eu" ]; 77 hosts = ["mastodon.immae.eu" ];
78 root = root; 78 root = root;
79 extraConfig = [ '' 79 extraConfig = [ ''