hainich: fix alps webmail

keep-around/4c8d4af865386b0e51a91512288c5228d1fa5bd9
hexchen 2020-12-09 12:01:39 +00:00
parent a3f1f5b8df
commit 4c8d4af865
2 changed files with 10 additions and 4 deletions

View File

@ -179,7 +179,13 @@ contact@hacc.space info@hacc.space'';
systemd.services.alps = {
enable = true;
script = "${pkgs.alps}/bin/alps -theme sourcehut imaps://mail.hacc.space:993 smtps://mail.hacc.space:465";
unitConfig.WorkingDirectory = "${pkgs.alps}/share/alps";
script = "${pkgs.alps}/bin/alps -theme alps imaps://mail.hacc.space:993 smtps://mail.hacc.space:465";
serviceConfig.WorkingDirectory = "${pkgs.alps}/share/alps";
};
services.nginx.virtualHosts."mail.hacc.space" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://[::1]:1323";
};
}

View File

@ -6,10 +6,10 @@ buildGoModule rec {
src = fetchGit {
url = "https://git.sr.ht/~migadu/alps";
rev = "5cef0aaff2b8b6ee3e00b566123517e241d8cfb8";
rev = "51498a2dc37987f55b022efb961b68a282be17ed";
};
vendorSha256 = "0hdfh6zdrjq97yj60dfsncl02cp8rpx4d4cqhk3zj0bhmpmrzddi";
vendorSha256 = "0wc8fb03zlc1gl4nxlsh149gvpvrs3lc0smzrnam9smigg9gw4in";
subPackages = [ "cmd/alps" ];