mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: added new site stuff
This commit is contained in:
parent
0fd351c9cb
commit
ff826c785a
7 changed files with 61 additions and 2 deletions
28
nixos/modules/services/upRootNutrition.nix
Executable file
28
nixos/modules/services/upRootNutrition.nix
Executable file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (flake.config.machines.devices) server;
|
||||
inherit (flake.config.services.instances) upRootNutrition web;
|
||||
service = upRootNutrition;
|
||||
localhost = web.localhost.address0;
|
||||
host = web.domains.url3;
|
||||
in {
|
||||
services = {
|
||||
caddy = {
|
||||
virtualHosts = {
|
||||
"${host}" = {
|
||||
extraConfig = ''
|
||||
redir /.well-known/carddav /remote.php/dav/ 301
|
||||
redir /.well-known/caldav /remote.php/dav/ 301
|
||||
|
||||
reverse_proxy ${localhost}:${toString service.ports.port1}
|
||||
|
||||
tls ${service.ssl.cert} ${service.ssl.key}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue