diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-16 14:09:27 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-16 14:09:27 +0100 |
commit | e5073addbe397afd596613af469f3308a07c1801 (patch) | |
tree | 943148dbdbfb9aeeccf9c5a5d945a7398205f03d /nixops/modules/websites/tellesflorian/default.nix | |
parent | a556c4b01a536afd90042dad95e7cc09f37d4056 (diff) | |
download | Nix-e5073addbe397afd596613af469f3308a07c1801.tar.gz Nix-e5073addbe397afd596613af469f3308a07c1801.tar.zst Nix-e5073addbe397afd596613af469f3308a07c1801.zip |
Move integration websites to use stable web directory
This permits to avoir having to restart httpd at each application
deployment
Diffstat (limited to 'nixops/modules/websites/tellesflorian/default.nix')
-rw-r--r-- | nixops/modules/websites/tellesflorian/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixops/modules/websites/tellesflorian/default.nix b/nixops/modules/websites/tellesflorian/default.nix index f347169..389c491 100644 --- a/nixops/modules/websites/tellesflorian/default.nix +++ b/nixops/modules/websites/tellesflorian/default.nix | |||
@@ -19,11 +19,15 @@ in { | |||
19 | security.acme.certs."eldiron".extraDomains."app.tellesflorian.com" = null; | 19 | security.acme.certs."eldiron".extraDomains."app.tellesflorian.com" = null; |
20 | services.myPhpfpm.poolConfigs.tellesflorian_dev = tellesflorian_dev.phpFpm.pool; | 20 | services.myPhpfpm.poolConfigs.tellesflorian_dev = tellesflorian_dev.phpFpm.pool; |
21 | system.activationScripts.tellesflorian_dev = tellesflorian_dev.activationScript; | 21 | system.activationScripts.tellesflorian_dev = tellesflorian_dev.activationScript; |
22 | system.extraSystemBuilderCmds = '' | ||
23 | mkdir -p $out/webapps | ||
24 | ln -s ${tellesflorian_dev.webRoot} $out/webapps/${tellesflorian_dev.apache.webappName} | ||
25 | ''; | ||
22 | services.myWebsites.integration.modules = adminer.apache.modules ++ tellesflorian_dev.apache.modules; | 26 | services.myWebsites.integration.modules = adminer.apache.modules ++ tellesflorian_dev.apache.modules; |
23 | services.myWebsites.integration.vhostConfs.tellesflorian = { | 27 | services.myWebsites.integration.vhostConfs.tellesflorian = { |
24 | certName = "eldiron"; | 28 | certName = "eldiron"; |
25 | hosts = ["app.tellesflorian.com" ]; | 29 | hosts = ["app.tellesflorian.com" ]; |
26 | root = tellesflorian_dev.webRoot; | 30 | root = tellesflorian_dev.apache.root; |
27 | extraConfig = [ | 31 | extraConfig = [ |
28 | tellesflorian_dev.apache.vhostConf | 32 | tellesflorian_dev.apache.vhostConf |
29 | adminer.apache.vhostConf | 33 | adminer.apache.vhostConf |