2021-11-26 13:45:04 +00:00
|
|
|
{ lib, ... }:
|
2021-11-22 13:00:07 +00:00
|
|
|
{
|
|
|
|
imports = [ ../../../common/services/nginx.nix ];
|
|
|
|
services.nginx.virtualHosts = {
|
|
|
|
"nixaalb.org" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
root = "/var/www/nixaalb.org/public";
|
|
|
|
};
|
|
|
|
"mta-sts.nixaalb.org" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
root = "/var/www/mta-sts/public";
|
|
|
|
};
|
2021-11-26 13:45:04 +00:00
|
|
|
"ag6mlqzpyswq3oogpnuykgllnv5gevjew6dshzmotwgnpo5jw2jqltad.onion" = {
|
|
|
|
# TODO: Do this with unix sockets instead
|
|
|
|
listen = [ {
|
|
|
|
addr = "[::1]";
|
|
|
|
port = 8080;
|
|
|
|
} ];
|
|
|
|
root = "/var/www/nixaalb.org/public";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
systemd.services.nginx.serviceConfig = {
|
|
|
|
PrivateTmp = lib.mkForce "false";
|
2021-11-22 13:00:07 +00:00
|
|
|
};
|
|
|
|
}
|