{ ... }: { imports = [ ../../modules/common.nix ./hardware.nix ./devices.nix ../../modules/www.nix ]; services.nginx.virtualHosts = { "rnrd.eu".locations = { # redirect to akkoma on lapin "/.well-known/webfinger" = { return = "301 https://soc.rnrd.eu$request_uri"; }; # delegate matrix to lapin "/.well-known/matrix/server" = { return = "200 '{ \"m.server\": \"matrix.rnrd.eu:443\" }'"; extraConfig = '' default_type application/json; ''; }; "/.well-known/matrix/client" = { return = "200 '{ \"m.homeserver\": { \"base_url\": \"https://matrix.rnrd.eu\" } }'"; extraConfig = '' default_type application/json; add_header "Access-Control-Allow-Origin" *; ''; }; }; "sho.rest" = { enableACME = true; forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:5000"; }; }; "mel.gg" = { enableACME = true; forceSSL = true; root = "/srv/mel"; }; "git.rnrd.eu" = { enableACME = true; forceSSL = true; locations = { "/" = { proxyPass = "http://127.0.0.1:3792"; }; "/static/" = { alias = "/srv/cgit/static/"; }; }; }; }; system.stateVersion = "24.05"; }