diff --git a/README.org b/README.org index 20ee14e..4a3a85d 100644 --- a/README.org +++ b/README.org @@ -892,6 +892,21 @@ Kaladin is my desktop machine. A powerhouse for the most part with a recent i7 a # Enable the OpenSSH daemon. services.openssh.enable = true; + + services.caddy = { + enable = true; + virtualHosts = { + "videosdani.tfcconnection.org".extraConfig = '' + reverse_proxy localhost:9000 + ''; + }; + virtualHosts = { + "videosdani.tfcconnection.org:1935".extraConfig = '' + reverse_proxy localhost:1935 + ''; + }; + }; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; diff --git a/system/kaladin/configuration.nix b/system/kaladin/configuration.nix index 6719ffe..e257310 100644 --- a/system/kaladin/configuration.nix +++ b/system/kaladin/configuration.nix @@ -4,6 +4,7 @@ imports = [ ./hardware-configuration.nix + /etc/nixos/cachix.nix ]; nix = { extraOptions = "experimental-features = nix-command flakes"; @@ -418,6 +419,21 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; + + services.caddy = { + enable = true; + virtualHosts = { + "videosdani.tfcconnection.org".extraConfig = '' + reverse_proxy localhost:9000 + ''; + }; + virtualHosts = { + "videosdani.tfcconnection.org:1935".extraConfig = '' + reverse_proxy localhost:1935 + ''; + }; + }; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];