22 lines
448 B
Nix
22 lines
448 B
Nix
{ pkgs, ... }:
|
|
{
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"https://git.huwe.mooo.com" = {
|
|
extraConfig = "reverse_proxy localhost:3000";
|
|
};
|
|
"https://files.huwe.mooo.com" = {
|
|
extraConfig = ''
|
|
root * /var/www/file_server
|
|
file_server
|
|
|
|
'';
|
|
};
|
|
"https://cal.huwe.mooo.com" = {
|
|
extraConfig = "reverse_proxy localhost:5232";
|
|
};
|
|
};
|
|
};
|
|
}
|