ma uhub: update plugin settings
This commit is contained in:
parent
de442ba8ad
commit
2f85a4ae59
@ -63,8 +63,11 @@ in {
|
|||||||
networking.firewall.extraCommands = ''
|
networking.firewall.extraCommands = ''
|
||||||
iptables -A PREROUTING -t nat -i ${ext-if} -p tcp --dport 411 -j REDIRECT --to-port 1511
|
iptables -A PREROUTING -t nat -i ${ext-if} -p tcp --dport 411 -j REDIRECT --to-port 1511
|
||||||
'';
|
'';
|
||||||
systemd.services.uhub.serviceConfig = {
|
systemd.services.uhub-home.serviceConfig = {
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
|
DynamicUser = lib.mkForce false;
|
||||||
|
User = "uhub";
|
||||||
|
WorkingDirectory = uhubDir;
|
||||||
PermissionsStartOnly = true;
|
PermissionsStartOnly = true;
|
||||||
ExecStartPre = pkgs.writeDash "uhub-pre" ''
|
ExecStartPre = pkgs.writeDash "uhub-pre" ''
|
||||||
cp -f ${toString <secrets/wildcard.krebsco.de.crt>} ${uhubDir}/uhub.crt
|
cp -f ${toString <secrets/wildcard.krebsco.de.crt>} ${uhubDir}/uhub.crt
|
||||||
@ -86,6 +89,7 @@ in {
|
|||||||
group = "uhub";
|
group = "uhub";
|
||||||
};
|
};
|
||||||
users.groups.uhub = {};
|
users.groups.uhub = {};
|
||||||
|
|
||||||
services.uhub.home = {
|
services.uhub.home = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTLS = true;
|
enableTLS = true;
|
||||||
@ -103,13 +107,12 @@ in {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = "${pkgs.uhub}/plugins/mod_welcome.so";
|
plugin = "${pkgs.uhub}/plugins/mod_welcome.so";
|
||||||
settings.motd = "shareit";
|
settings.motd = toString (pkgs.writeText "motd" "shareit");
|
||||||
settings.rules = "1. Don't be an asshole";
|
settings.rules = toString (pkgs.writeText "rules" "1. Don't be an asshole");
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = "${pkgs.uhub}/plugins/mod_history.so";
|
plugin = "${pkgs.uhub}/plugins/mod_chat_history.so";
|
||||||
settings.motd = "shareit";
|
settings = {};
|
||||||
settings.rules = "1. Don't be an asshole";
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user