ma fileleech: retab, use torrent
This commit is contained in:
parent
161c810b74
commit
14634592a6
@ -25,13 +25,13 @@ in {
|
|||||||
<stockholm/makefu>
|
<stockholm/makefu>
|
||||||
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
<stockholm/makefu/2configs/tinc/retiolum.nix>
|
||||||
<stockholm/makefu/2configs/disable_v6.nix>
|
<stockholm/makefu/2configs/disable_v6.nix>
|
||||||
# <stockholm/makefu/2configs/torrent.nix>
|
<stockholm/makefu/2configs/torrent.nix>
|
||||||
<stockholm/makefu/2configs/fs/sda-crypto-root.nix>
|
<stockholm/makefu/2configs/fs/sda-crypto-root.nix>
|
||||||
|
|
||||||
#<stockholm/makefu/2configs/elchos/irc-token.nix>
|
#<stockholm/makefu/2configs/elchos/irc-token.nix>
|
||||||
<stockholm/makefu/2configs/elchos/log.nix>
|
# <stockholm/makefu/2configs/elchos/log.nix>
|
||||||
<stockholm/makefu/2configs/elchos/search.nix>
|
# <stockholm/makefu/2configs/elchos/search.nix>
|
||||||
<stockholm/makefu/2configs/elchos/stats.nix>
|
# <stockholm/makefu/2configs/elchos/stats.nix>
|
||||||
|
|
||||||
];
|
];
|
||||||
systemd.services.grafana.serviceConfig.LimitNOFILE=10032;
|
systemd.services.grafana.serviceConfig.LimitNOFILE=10032;
|
||||||
@ -60,7 +60,7 @@ in {
|
|||||||
];
|
];
|
||||||
services.nginx.virtualHosts._download = {
|
services.nginx.virtualHosts._download = {
|
||||||
default = true;
|
default = true;
|
||||||
root = "/media/cryptX";
|
root = config.makefu.dl-dir;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
autoindex on;
|
autoindex on;
|
||||||
'';
|
'';
|
||||||
@ -80,10 +80,11 @@ in {
|
|||||||
services.sabnzbd.enable = true;
|
services.sabnzbd.enable = true;
|
||||||
systemd.services.sabnzbd.environment.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
systemd.services.sabnzbd.environment.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
|
|
||||||
|
# TODO use users.motd and pam.services.sshd.showMotd
|
||||||
services.openssh.extraConfig = let banner = pkgs.writeText "openssh-banner" ''
|
services.openssh.extraConfig = let banner = pkgs.writeText "openssh-banner" ''
|
||||||
Services:
|
Services:
|
||||||
ssh://download@fileleech - ssh via filebitch.shack
|
ssh://download@fileleech - ssh via filebitch
|
||||||
ftp://download@fileleech - access to /media/cryptX
|
ftp://download@fileleech - access to ${config.makefu.dl-dir}
|
||||||
http://fileleech:8112 - rutorrent
|
http://fileleech:8112 - rutorrent
|
||||||
http://fileleech:8113 - pyload
|
http://fileleech:8113 - pyload
|
||||||
https://fileleech:9090 - sabnzb
|
https://fileleech:9090 - sabnzb
|
||||||
@ -121,10 +122,10 @@ in {
|
|||||||
}
|
}
|
||||||
|
|
||||||
;
|
;
|
||||||
|
makefu.dl-dir = "/media/cryptX";
|
||||||
users.users.download = {
|
users.users.download = {
|
||||||
useDefaultShell = true;
|
useDefaultShell = true;
|
||||||
# name = "download";
|
# name = "download";
|
||||||
home = "/media/cryptX/";
|
|
||||||
# createHome = true;
|
# createHome = true;
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
config.krebs.users.makefu.pubkey
|
config.krebs.users.makefu.pubkey
|
||||||
@ -142,15 +143,19 @@ in {
|
|||||||
parity = toMapper 7;
|
parity = toMapper 7;
|
||||||
};
|
};
|
||||||
networking.nameservers = [ "8.8.8.8" ];
|
networking.nameservers = [ "8.8.8.8" ];
|
||||||
#networking.interfaces.enp6s0f0.ip4 = [{
|
# SPF
|
||||||
# address = "151.217.173.20";
|
networking.defaultGateway = "151.217.176.1";
|
||||||
# prefixLength = 22;
|
networking.interfaces.enp6s0f0.ip4 = [{
|
||||||
#}];
|
address = "151.217.178.63";
|
||||||
#networking.defaultGateway = "151.217.172.1";
|
prefixLength = 22;
|
||||||
|
}];
|
||||||
|
|
||||||
|
# Gigabit
|
||||||
networking.interfaces.enp8s0f1.ip4 = [{
|
networking.interfaces.enp8s0f1.ip4 = [{
|
||||||
address = "192.168.126.1";
|
address = "192.168.126.1";
|
||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
#interfaces.enp6s0f1.ip4 = [{
|
#interfaces.enp6s0f1.ip4 = [{
|
||||||
# address = external-ip;
|
# address = external-ip;
|
||||||
# prefixLength = 22;
|
# prefixLength = 22;
|
||||||
|
Loading…
Reference in New Issue
Block a user