global/security: add rsync.net ssh host alias
This commit is contained in:
parent
d55fccdd3a
commit
3ed49dcd02
1 changed files with 18 additions and 0 deletions
|
@ -48,6 +48,18 @@ with lib;
|
|||
}];
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
extraConfig = with config.common; ''
|
||||
Host rsync.net
|
||||
Hostname ${rsyncnet.host}
|
||||
User ${rsyncnet.user}
|
||||
|
||||
Host admin.rsync.net
|
||||
Hostname ${rsyncnet.host}
|
||||
User ${rsyncnet.account}
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
statusPage = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
@ -69,5 +81,11 @@ with lib;
|
|||
forceSSL = true;
|
||||
};
|
||||
};
|
||||
|
||||
rsyncnet = rec {
|
||||
account = "de3482";
|
||||
user = "${account}s1";
|
||||
host = "${account}.rsync.net";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue