ulfm: prepping to setup ulfm

This commit is contained in:
silver 2023-04-21 01:22:16 +01:00
parent c2842fb766
commit ce9e245000

View file

@ -22,15 +22,21 @@ let
feck = "d9J4jDsJPuMPUMAAE4J4tH37HsmxEDze"; feck = "d9J4jDsJPuMPUMAAE4J4tH37HsmxEDze";
in { in {
imports = [ imports = [
# applications for this particular server # general stuff for config
../applications/firewall.nix ../applications/firewall.nix
../applications/dns.nix ../applications/dns.nix
# web stuff
../applications/nginx.nix
#../applications/acme.nix
# specific to tis server
]; ];
deployment = { deployment = {
targetHost = hostname; targetHost = hostname;
targetPort = 22; targetPort = 22;
targetUser = "root"; targetUser = "root";
tags = [ "active" ];
}; };
# these two are to be able to add the rules for firewall and dns # these two are to be able to add the rules for firewall and dns
@ -47,27 +53,18 @@ in {
]; ];
cname = [ cname = [
# this is also the stream server # this is also the stream server
"stream CNAME ${name}" #"stream CNAME ${name}"
"ulfm CNAME ${name}"
]; ];
}; };
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [ 8000 ];
22
80
443
8000
];
# config for icecast is smol so can have it in this services = {
services.icecast = { nginx.virtualHosts."ulfm.skynet.ie" = {
enable = true; #forceSSL = true;
hostname = hostname; #useACMEHost = "skynet";
# locations."/gw2".proxyPass = "http://localhost:8085";
admin = {
user = "admin";
password = feck;
}; };
}; };
} }