diff options
author | makefu <github@syntax-fehler.de> | 2022-06-06 21:12:52 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2022-06-06 21:13:01 +0200 |
commit | 67693d4eb4d492811069c32e6ed4e57854163beb (patch) | |
tree | c22c88bf2d7978668e00dea6a8439274d169e7c7 /makefu/2configs/bgt/download.binaergewitter.de.nix | |
parent | b0fcf41a824695a8d91f8355f94cba0523991837 (diff) |
ma bgt: move storedir to hetzner cloud, fix for old ssh client
Diffstat (limited to 'makefu/2configs/bgt/download.binaergewitter.de.nix')
-rw-r--r-- | makefu/2configs/bgt/download.binaergewitter.de.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/makefu/2configs/bgt/download.binaergewitter.de.nix b/makefu/2configs/bgt/download.binaergewitter.de.nix index 6ce0606a8..1cf21f213 100644 --- a/makefu/2configs/bgt/download.binaergewitter.de.nix +++ b/makefu/2configs/bgt/download.binaergewitter.de.nix @@ -5,22 +5,37 @@ let ident = (builtins.readFile ./auphonic.pub); bgtaccess = "/var/spool/nginx/logs/binaergewitter.access.log"; bgterror = "/var/spool/nginx/logs/binaergewitter.error.log"; + + # TODO: only when the data is stored somewhere else + wwwdir = "/var/www/binaergewitter"; + storedir = "/media/cloud/www/binaergewitter"; in { + fileSystems."${wwwdir}" = { + device = storedir; + options = [ "bind" ]; + }; + services.openssh = { allowSFTP = true; sftpFlags = [ "-l VERBOSE" ]; extraConfig = '' + HostkeyAlgorithms +ssh-rsa + Match User auphonic ForceCommand internal-sftp AllowTcpForwarding no X11Forwarding no PasswordAuthentication no + PubkeyAcceptedAlgorithms +ssh-rsa + ''; }; users.users.auphonic = { uid = genid "auphonic"; group = "nginx"; + # for storedir + extraGroups = [ "download" ]; useDefaultShell = true; isSystemUser = true; openssh.authorizedKeys.keys = [ ident config.krebs.users.makefu.pubkey ]; |