Fix up static website hosting on corp

This commit is contained in:
Eli Ribble 2025-09-21 21:53:21 +00:00
parent 35777dc9cb
commit 09ba3f4abe
3 changed files with 23 additions and 8 deletions

View file

@ -25,6 +25,7 @@
glitchtip.enable = true;
element-web.enable = true;
librechat.enable = true;
static-websites.enable = true;
synapse.enable = true;
timecardbot.enable = true;
vikunja.enable = true;

View file

@ -16,6 +16,7 @@
./openssh.nix
./podman.nix
./sillytavern.nix
./static-websites.nix
./sudo.nix
./synapse.nix
./timecardbot.nix

View file

@ -4,14 +4,27 @@ with lib;
options.myModules.static-websites.enable = mkEnableOption "custom static-websites configuration";
config = mkIf config.myModules.static-websites.enable {
services.caddy.virtualHosts."blog.tealok.tech".extraConfig = ''
root * /var/www/blog.tealok.tech
file_server
'';
users.groups.www-data = {};
users.users.www-data = {
group = "www-data";
isSystemUser = true;
services.caddy.virtualHosts = {
"blog.tealok.tech".extraConfig = ''
root * /var/www/html/blog.tealok.tech
file_server
'';
"gleipnir.technology".extraConfig = ''
root * /var/www/html/gleipnir.technology
file_server
'';
"tealok.tech".extraConfig = ''
root * /var/www/html/tealok.tech
file_server
'';
"www.gleipnir.technology".extraConfig = ''
root * /var/www/html/gleipnir.technology
file_server
'';
"www.tealok.tech".extraConfig = ''
root * /var/www/html/tealok.tech
file_server
'';
};
};
}