nixbld: host 193thz.com

force-ssl-main-website
Sebastien Bourdeauducq 2023-09-05 22:04:27 +08:00
parent a4ebfb23e4
commit e5257122b1
2 changed files with 54 additions and 1 deletions

View File

@ -298,6 +298,23 @@ in
"216.218.133.2" "2001:470:600::2" # slave.dns.he.net
];
};
"193thz.com" = {
name = "193thz.com";
master = true;
file = "/etc/nixos/named/193thz.com";
extraConfig =
''
dnssec-policy "default";
inline-signing yes;
notify explicit;
also-notify {
216.218.130.2; # ns1.he.net
};
'';
slaves = [
"216.218.133.2" "2001:470:600::2" # slave.dns.he.net
];
};
"200-29.98.206.103.in-addr.arpa" = {
name = "200-29.98.206.103.in-addr.arpa";
master = true;
@ -975,6 +992,16 @@ in
locations."/socket.io/".proxyPass = "http://localhost:9825";
locations."/socket.io/".proxyWebsockets = true;
};
"193thz.com" = {
addSSL = true;
enableACME = true;
root = "/var/www/perso/sb";
};
"www.193thz.com" = {
addSSL = true;
enableACME = true;
root = "/var/www/perso/sb";
};
"nmigen.net" = {
addSSL = true;
enableACME = true;
@ -1047,7 +1074,7 @@ in
enable = true;
localDnsResolver = false; # conflicts with dnsmasq
fqdn = "mail.m-labs.hk";
domains = [ "m-labs.hk" "m-labs.ph" ];
domains = [ "m-labs.hk" "m-labs.ph" "193thz.com" ];
enablePop3 = true;
enablePop3Ssl = true;
certificateScheme = "acme-nginx";

View File

@ -0,0 +1,26 @@
$TTL 7200
@ SOA ns1.193thz.com. sb.m-labs.hk. (
2023090504
7200
3600
86400
600)
NS ns.193thz.com.
NS ns1.he.net.
A 94.190.212.123
AAAA 2001:470:18:390::2
MX 10 mail.m-labs.hk.
TXT "v=spf1 mx a:router.alt.m-labs.hk -all"
TXT "google-site-verification=5eIjLyhM_siRg5Fc2Z3AMSbheH0JFOn5iR3TCEXakqU"
ns A 94.190.212.123
mail._domainkey TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC9T0cONxGXeyETE0bJ6NJVGT58fVFrfb+WxQhMskCN/mJhODyDTkRCjzE8ZnKhZGjkFZNG+PoSZlW+kpSS1LvMwzQpMRaH4zAzIexffR0l7rJR1MuQiVMsfGWpO2SLEuN74L2qH8SUBHZjrRpeSaFxwQm+prIOzZe5wTZStt/6qQIDAQAB"
_dmarc TXT "v=DMARC1; p=none"
www CNAME @