From 4d7b3a19578c3888f04159c88990106440866383 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 27 Jun 2022 22:54:45 +0900 Subject: Give owocean a nginx vhost --- static.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'static.nix') diff --git a/static.nix b/static.nix index f50fb5e..1a44bd6 100644 --- a/static.nix +++ b/static.nix @@ -54,15 +54,24 @@ in { nginx = { enable = true; + enableReload = true; recommendedGzipSettings = true; recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; - virtualHosts.${domain} = { - enableACME = true; - forceSSL = true; - locations."/".index = "index.xhtml"; - root = "/var/lib/www/${domain}"; + virtualHosts = { + ${domain} = { + enableACME = true; + forceSSL = true; + locations."/".index = "index.xhtml"; + root = "/var/lib/www/${domain}"; + }; + + "owocean.${domain}" = { + enableACME = true; + forceSSL = true; + root = "/var/lib/www/owocean.${domain}"; + }; }; }; }; -- cgit 1.4.1