Compare commits
3 commits
f2dc1001d3
...
c3fcdc9322
Author | SHA1 | Date | |
---|---|---|---|
c3fcdc9322 | |||
26022cf3dd | |||
c503124425 |
3 changed files with 5 additions and 4 deletions
|
@ -40,7 +40,7 @@ with lib;
|
|||
host = "mail.cyon.ch";
|
||||
user = "system@qo.is";
|
||||
from = "no-reply@qo.is";
|
||||
passwordeval = "${pkgs.busybox}/bin/cat ${config.sops.secrets."msmtp/password".path}";
|
||||
passwordeval = "${pkgs.coreutils}/bin/cat ${config.sops.secrets."msmtp/password".path}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -148,7 +148,7 @@ in
|
|||
frontend http
|
||||
mode http
|
||||
bind *:80
|
||||
use_backend %[req.hdr(host),lower,map_dom(${domainMappingFile})]-http
|
||||
use_backend %[req.hdr(host),lower,map(${domainMappingFile})]-http
|
||||
|
||||
frontend https
|
||||
bind *:443
|
||||
|
@ -156,7 +156,7 @@ in
|
|||
tcp-request inspect-delay 5s
|
||||
tcp-request content accept if { req_ssl_hello_type 1 }
|
||||
|
||||
use_backend %[req.ssl_sni,lower,map_dom(${domainMappingFile})]-https
|
||||
use_backend %[req.ssl_sni,lower,map(${domainMappingFile})]-https
|
||||
|
||||
## Generated Backends:
|
||||
${httpBackends}
|
||||
|
|
|
@ -34,6 +34,8 @@ with lib;
|
|||
ROCKET_PORT = 8222;
|
||||
|
||||
USE_SENDMAIL = true;
|
||||
SENDMAIL_COMMAND = "${pkgs.msmtp}/bin/sendmail";
|
||||
|
||||
SMTP_FROM = "vault@qo.is";
|
||||
SMTP_FROM_NAME = cfg.domain;
|
||||
|
||||
|
@ -68,7 +70,6 @@ with lib;
|
|||
# See https://search.nixos.org/options?channel=unstable&show=services.vaultwarden.environmentFile
|
||||
sops.secrets."vaultwarden/environment-file".restartUnits = [ "vaultwarden.service" ];
|
||||
|
||||
systemd.services.vaultwarden.path = [ pkgs.msmtp ];
|
||||
users.users.vaultwarden.extraGroups = [ "postdrop" ];
|
||||
|
||||
networking.hosts."127.0.0.1" = [ cfg.domain ];
|
||||
|
|
Loading…
Add table
Reference in a new issue