diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-16 23:23:05 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-17 00:04:47 +0200 |
commit | 7df420c27ebe7daaa4fd099c457ce9a9075b840e (patch) | |
tree | ec41e01e9331652c09dc4f2ed4186ce5952c3882 /nixops/modules/websites/ftp/immae.nix | |
parent | 52f45eb051df228955add90ca62de66a7ed8af34 (diff) | |
download | Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.tar.gz Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.tar.zst Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.zip |
Add certificate creation and handling to websites
Diffstat (limited to 'nixops/modules/websites/ftp/immae.nix')
-rw-r--r-- | nixops/modules/websites/ftp/immae.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nixops/modules/websites/ftp/immae.nix b/nixops/modules/websites/ftp/immae.nix index e188d95..2ba30a1 100644 --- a/nixops/modules/websites/ftp/immae.nix +++ b/nixops/modules/websites/ftp/immae.nix | |||
@@ -13,8 +13,6 @@ in { | |||
13 | config = lib.mkIf cfg.production.enable { | 13 | config = lib.mkIf cfg.production.enable { |
14 | services.webstats.sites = [ { name = "www.immae.eu"; } ]; | 14 | services.webstats.sites = [ { name = "www.immae.eu"; } ]; |
15 | 15 | ||
16 | security.acme.certs."eldiron".extraDomains."www.immae.eu" = null; | ||
17 | |||
18 | services.myPhpfpm.poolConfigs.immae = '' | 16 | services.myPhpfpm.poolConfigs.immae = '' |
19 | listen = /run/phpfpm/immae.sock | 17 | listen = /run/phpfpm/immae.sock |
20 | user = wwwrun | 18 | user = wwwrun |
@@ -31,6 +29,7 @@ in { | |||
31 | services.websites.production.modules = [ "proxy_fcgi" ]; | 29 | services.websites.production.modules = [ "proxy_fcgi" ]; |
32 | services.websites.production.vhostConfs.immae = { | 30 | services.websites.production.vhostConfs.immae = { |
33 | certName = "eldiron"; | 31 | certName = "eldiron"; |
32 | addToCerts = true; | ||
34 | hosts = [ "www.immae.eu" ]; | 33 | hosts = [ "www.immae.eu" ]; |
35 | root = varDir; | 34 | root = varDir; |
36 | extraConfig = [ | 35 | extraConfig = [ |
@@ -56,10 +55,9 @@ in { | |||
56 | ]; | 55 | ]; |
57 | }; | 56 | }; |
58 | 57 | ||
59 | security.acme.certs."eldiron".extraDomains."bouya.org" = null; | ||
60 | security.acme.certs."eldiron".extraDomains."www.bouya.org" = null; | ||
61 | services.websites.production.vhostConfs.bouya = { | 58 | services.websites.production.vhostConfs.bouya = { |
62 | certName = "eldiron"; | 59 | certName = "eldiron"; |
60 | addToCerts = true; | ||
63 | hosts = [ "bouya.org" "www.bouya.org" ]; | 61 | hosts = [ "bouya.org" "www.bouya.org" ]; |
64 | root = null; | 62 | root = null; |
65 | extraConfig = [ '' | 63 | extraConfig = [ '' |