fix www
This commit is contained in:
parent
5807b563a1
commit
ff5cb096de
2 changed files with 19 additions and 14 deletions
|
|
@ -4,17 +4,17 @@ let
|
|||
# TODO: mkVHost
|
||||
in
|
||||
{
|
||||
services.nginx.virtualHosts."${config.networking.fqdn}" = {
|
||||
services.nginx.virtualHosts."www.${config.networking.domain}" = {
|
||||
default = true;
|
||||
serverAliases = [config.networking.domain];
|
||||
quic = true;
|
||||
kTLS = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
root = "/srv/http/www";
|
||||
index = "index.html";
|
||||
locations."/" = {
|
||||
try_files = "$uri $uri/ $uri.html =404";
|
||||
root = "/srv/http/www";
|
||||
index = "index.html";
|
||||
tryFiles = "$uri $uri/ $uri.html =404";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,21 @@
|
|||
{ 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"];
|
||||
users = {
|
||||
users.deploy = {
|
||||
description = "deploys static websites from forgejo";
|
||||
shell = "/run/current-system/sw/bin/nologin";
|
||||
isSystemUser = true;
|
||||
group = "deploy";
|
||||
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"];
|
||||
};
|
||||
groups.deploy = {};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue