Home: Add davis.
This commit is contained in:
parent
5ec2dca439
commit
af86a390fa
|
@ -5,6 +5,7 @@ let
|
||||||
binds = [
|
binds = [
|
||||||
(mkBind "change" "/var/lib/changedetection-io")
|
(mkBind "change" "/var/lib/changedetection-io")
|
||||||
(mkBind "cups" "/var/lib/cups")
|
(mkBind "cups" "/var/lib/cups")
|
||||||
|
(mkBind "davis" "/var/lib/davis")
|
||||||
(mkBind "deluge" "/var/lib/deluge/.config/deluge")
|
(mkBind "deluge" "/var/lib/deluge/.config/deluge")
|
||||||
(mkBind "dkim" "/var/dkim")
|
(mkBind "dkim" "/var/dkim")
|
||||||
(mkBind "dovecot_index" "/var/lib/dovecot/indices")
|
(mkBind "dovecot_index" "/var/lib/dovecot/indices")
|
||||||
|
|
20
host/x86_64-linux/home/Davis.nix
Normal file
20
host/x86_64-linux/home/Davis.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ ... }:
|
||||||
|
let
|
||||||
|
storage = "/storage/hot/data/davis"; # TODO: Move to config.
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.davis = {
|
||||||
|
enable = true;
|
||||||
|
adminPasswordFile = "${storage}/Password";
|
||||||
|
appSecretFile = "${storage}/Secret";
|
||||||
|
hostname = "dav.voronind.com";
|
||||||
|
nginx = {
|
||||||
|
sslCertificate = "/etc/letsencrypt/live/voronind.com/fullchain.pem";
|
||||||
|
sslCertificateKey = "/etc/letsencrypt/live/voronind.com/privkey.pem";
|
||||||
|
};
|
||||||
|
mail = {
|
||||||
|
dsnFile = "${storage}/Dsn";
|
||||||
|
inviteFromAddress = "noreply@voronind.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
17
host/x86_64-linux/home/nginx/Davis.nix
Normal file
17
host/x86_64-linux/home/nginx/Davis.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
"dav.voronind.com" = {
|
||||||
|
sslCertificate = "/etc/letsencrypt/live/voronind.com/fullchain.pem";
|
||||||
|
sslCertificateKey = "/etc/letsencrypt/live/voronind.com/privkey.pem";
|
||||||
|
onlySSL = lib.mkForce true;
|
||||||
|
locations."/".extraConfig = ''
|
||||||
|
allow 10.0.0.0/8;
|
||||||
|
allow fd09:8d46:b26::/48;
|
||||||
|
deny all;
|
||||||
|
'';
|
||||||
|
extraConfig = ''
|
||||||
|
include /etc/letsencrypt/conf/options-ssl-nginx.conf;
|
||||||
|
ssl_dhparam /etc/letsencrypt/conf/ssl-dhparams.pem;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue