diff options
Diffstat (limited to 'Omni/Cloud/Web.nix')
-rw-r--r-- | Omni/Cloud/Web.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Omni/Cloud/Web.nix b/Omni/Cloud/Web.nix index 1225247..79886c3 100644 --- a/Omni/Cloud/Web.nix +++ b/Omni/Cloud/Web.nix @@ -103,6 +103,14 @@ in { user = "nginx"; group = "nginx"; + # Add PHP configuration for Monica + appendHttpConfig = '' + # PHP FastCGI configuration for Monica + upstream php-handler { + server unix:/run/phpfpm/monica.sock; + } + ''; + virtualHosts = { ${rootDomain} = { serverName = rootDomain; @@ -149,6 +157,9 @@ in { useACMEHost = rootDomain; }; + # Monica virtual host configuration is handled by the Monica service + # Don't add a manual entry here to avoid conflicts + "hoogle.${rootDomain}" = { locations."/".proxyPass = "http://${ports.bensIp}:${toString ports.hoogle}"; forceSSL = true; @@ -288,6 +299,7 @@ in { "sd" "gerrit" "git" + "monica" # xmpp stuff "upload" "conference" |