adding videosdani

This commit is contained in:
Chris Cochrun 2022-09-26 11:40:37 -05:00
parent 9347d1763a
commit f36e139181
2 changed files with 31 additions and 0 deletions

View file

@ -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 = [ ... ];

View file

@ -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 = [ ... ];