jellyfin is working on my domain name
This commit is contained in:
17
modules/server/glasshaus/caddy.nix
Executable file
17
modules/server/glasshaus/caddy.nix
Executable file
@@ -0,0 +1,17 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
caddyConfig.enable = lib.mkEnableOption "Enable my caddy config for the glasshaus.info domain name";
|
||||
};
|
||||
config = lib.mkIf config.caddyConfig.enable {
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
configFile = pkgs.writeText "Caddyfile" ''
|
||||
glasshaus.info {
|
||||
reverse_proxy localhost:8096
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
5
modules/server/glasshaus/default.nix
Executable file
5
modules/server/glasshaus/default.nix
Executable file
@@ -0,0 +1,5 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./caddy.nix ];
|
||||
}
|
||||
Reference in New Issue
Block a user