add nginx and ssh config
This commit is contained in:
parent
b177613b1e
commit
b918d81d05
2 changed files with 18 additions and 0 deletions
|
|
@ -5,6 +5,8 @@
|
|||
../common.nix
|
||||
../../services/openssh.nix
|
||||
../../services/nginx.nix
|
||||
./nginx.nix
|
||||
./ssh.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
16
hosts/www/ssh.nix
Normal file
16
hosts/www/ssh.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.deploy = {
|
||||
description = "deploys static websites from forgejo";
|
||||
shell = pkgs.nologin;
|
||||
packages = [
|
||||
pkgs.rsync
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"command='rsync --server --daemon . /srv/http/www/',restrict ssh-ed25519 AAAAB3NzaC1yc2EAAAADAQABAAABAQCy... git.berlin.ccc.de/cccb/www"
|
||||
];
|
||||
#extraGroups = ["nginx"];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue