fix fqdn
This commit is contained in:
parent
219482c2f3
commit
5807b563a1
5 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
services.hedgedoc = {
|
services.hedgedoc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
domain = "${config.networking.hostName}.${config.networking.domain}";
|
domain = "${config.networking.fqdn}";
|
||||||
#environmentFile = config.age.secrets.hedgedoc_settings.path;
|
#environmentFile = config.age.secrets.hedgedoc_settings.path;
|
||||||
protocolUseSSL = true;
|
protocolUseSSL = true;
|
||||||
db = {
|
db = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ let
|
||||||
cfg = config.services.hedgedoc.settings;
|
cfg = config.services.hedgedoc.settings;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nginx.virtualHosts."${fqdn}" = {
|
nginx.virtualHosts."${config.networking.fqdn}" = {
|
||||||
default = true;
|
default = true;
|
||||||
quic = true;
|
quic = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@
|
||||||
imports = [
|
imports = [
|
||||||
../common.nix
|
../common.nix
|
||||||
../../services/openssh.nix
|
../../services/openssh.nix
|
||||||
|
./openssh.nix
|
||||||
../../services/nginx.nix
|
../../services/nginx.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./ssh.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ let
|
||||||
# TODO: mkVHost
|
# TODO: mkVHost
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts."${config.networking.hostName}.${config.networking.domain}" = {
|
services.nginx.virtualHosts."${config.networking.fqdn}" = {
|
||||||
default = true;
|
default = true;
|
||||||
serverAliases = [config.networking.domain];
|
serverAliases = [config.networking.domain];
|
||||||
quic = true;
|
quic = true;
|
||||||
|
|
|
||||||
16
hosts/www/openssh.nix
Normal file
16
hosts/www/openssh.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…
Reference in a new issue