19 lines
416 B
Nix
Executable File
19 lines
416 B
Nix
Executable File
{ lib, config, pkgs, ... }:
|
|
|
|
{
|
|
options = {
|
|
movOpts.caddyConfig.enable = lib.mkEnableOption
|
|
"Enable my caddy config for the glasshaus.info domain name";
|
|
};
|
|
config = lib.mkIf config.movOpts.caddyConfig.enable {
|
|
services.caddy = {
|
|
enable = true;
|
|
configFile = pkgs.writeText "Caddyfile" ''
|
|
glasshaus.info {
|
|
reverse_proxy localhost:8096
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|