Fix up static website hosting on corp
This commit is contained in:
parent
35777dc9cb
commit
09ba3f4abe
3 changed files with 23 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
./openssh.nix
|
||||
./podman.nix
|
||||
./sillytavern.nix
|
||||
./static-websites.nix
|
||||
./sudo.nix
|
||||
./synapse.nix
|
||||
./timecardbot.nix
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue