Compare commits

..

2 commits

Author SHA1 Message Date
56557ab5d1 Ensure that /var/www exists. 2025-02-19 12:28:42 -06:00
77074c7d87 Add staging.thewordnerd.info. 2025-02-19 12:28:20 -06:00
2 changed files with 14 additions and 3 deletions

View file

@ -69,7 +69,12 @@ in
};
};
systemd.services."gitea-runner-${utils.escapeSystemdPath "${name}-linux"}".serviceConfig.ReadWritePaths = "/var/www";
systemd.tmpfiles.rules = [
"d /var/www 0775 root root"
];
systemd.services."gitea-runner-${utils.escapeSystemdPath "${name}-linux"}".serviceConfig.ReadWritePaths =
"/var/www";
environment.systemPackages = with pkgs; [ unstable.forgejo-runner ];

View file

@ -120,11 +120,17 @@
services.caddy.virtualHosts."thewordnerd.info".extraConfig =
''redir https://www.thewordnerd.info{uri}'';
services.caddy.virtualHosts."www.thewordnerd.info".extraConfig = ''
services.caddy.virtualHosts."www.thewordnerd.info".extraConfig = ''
file_server
root * /var/www/thewordnerd.info
header /.well-known/matrix/* content-type application/json
'';
'';
services.caddy.virtualHosts."staging.thewordnerd.info".extraConfig = ''
file_server
root * /var/www/staging.thewordnerd.info
header /.well-known/matrix/* content-type application/json
'';
services.caddy.virtualHosts."users.thewordnerd.info".extraConfig =
''reverse_proxy localhost:17170'';