From 9eaddef14eabe05caf00706267231649b542b4db Mon Sep 17 00:00:00 2001 From: Bun Date: Fri, 11 Jul 2025 01:36:36 -0400 Subject: [PATCH] add the old site --- hosts/midas/services/nginx/nixfox/default.nix | 53 +++++++++++-------- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/hosts/midas/services/nginx/nixfox/default.nix b/hosts/midas/services/nginx/nixfox/default.nix index cec71cd6..0a3260c0 100644 --- a/hosts/midas/services/nginx/nixfox/default.nix +++ b/hosts/midas/services/nginx/nixfox/default.nix @@ -2,34 +2,41 @@ { services = { # The main nginx domain - nginx.virtualHosts."nixfox.ca" = { - enableACME = true; - addSSL = true; + nginx.virtualHosts = { + "nixfox.ca" = { + enableACME = true; + addSSL = true; + root = "/var/www/nixfox-reborn/public"; - root = "/var/www/nixfox-reborn/public"; + locations = { + "/".extraConfig = '' + error_page 404 /404.html; + ''; - locations = { - "/".extraConfig = '' - error_page 404 /404.html; - ''; + "~ \\.php$".extraConfig = '' + fastcgi_index index.php; + fastcgi_pass unix:${config.services.phpfpm.pools.nginx.socket}; + ''; - "~ \\.php$".extraConfig = '' - fastcgi_index index.php; - fastcgi_pass unix:${config.services.phpfpm.pools.nginx.socket}; - ''; + "/.well-known/matrix/client".extraConfig = '' + default_type application/json; + return 200 '{ + "m.homeserver": { "base_url": "https://matrix.nixfox.ca" }, + "m.identity_server": { "base_url": "https://matrix.org" } + }'; + ''; - "/.well-known/matrix/client".extraConfig = '' - default_type application/json; - return 200 '{ - "m.homeserver": { "base_url": "https://matrix.nixfox.ca" }, - "m.identity_server": { "base_url": "https://matrix.org" } - }'; - ''; + "/.well-known/matrix/server".extraConfig = '' + default_type application/json; + return 200 '{ "m.server": "matrix.nixfox.ca:443" }'; + ''; + }; + }; - "/.well-known/matrix/server".extraConfig = '' - default_type application/json; - return 200 '{ "m.server": "matrix.nixfox.ca:443" }'; - ''; + "old.nixfox.ca" = { + enableACME = true; + addSSL = true; + root = "/var/www/landing-page"; }; };