cleanup + minecraft changes
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
config,
|
||||
service_configs,
|
||||
username,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -34,19 +35,27 @@
|
||||
'';
|
||||
|
||||
"bitmagnet.${service_configs.https.domain}".extraConfig = ''
|
||||
tls internal
|
||||
# tls internal
|
||||
${import ../secrets/caddy_auth.nix}
|
||||
reverse_proxy ${service_configs.https.wg_ip}:${builtins.toString service_configs.ports.bitmagnet}
|
||||
'';
|
||||
|
||||
"torrent.${service_configs.https.domain}".extraConfig = ''
|
||||
tls internal
|
||||
# tls internal
|
||||
${import ../secrets/caddy_auth.nix}
|
||||
reverse_proxy ${service_configs.https.wg_ip}:${builtins.toString service_configs.ports.torrent}
|
||||
'';
|
||||
|
||||
"map.${service_configs.https.domain}".extraConfig = ''
|
||||
# tls internal
|
||||
root * ${service_configs.minecraft.parent_dir}/${service_configs.minecraft.server_name}/squaremap/web
|
||||
file_server browse
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
systemd.packages = with pkgs; [ nssTools ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
service_configs.ports.https
|
||||
80
|
||||
@@ -56,6 +65,10 @@
|
||||
service_configs.ports.https
|
||||
];
|
||||
|
||||
users.users.${config.services.caddy.user}.extraGroups = [
|
||||
"minecraft"
|
||||
];
|
||||
|
||||
users.users.${username}.extraGroups = [
|
||||
config.services.caddy.group
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user