Hello! I got a domain from Porkbun. I want to run a Peertube instance on it, but I’m having trouble. I can access it from my hosting computer’s local IP, but I can’t get it to use the domain I purchased. I don’t really know what I’m doing lol
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."proot.party" = {
addSSL = true;
sslTrustedCertificate = "/run/secrets/proot.party/domain.cert.pem";
sslCertificateKey = "/run/secrets/proot.pary/private.key.pem";
sslCertificate = "/run/secrets/proot.party/public.key.pem";
enableACME = true;
#root = "/var/www/proot.party";
};
};
security.acme = {
acceptTerms = true;
defaults.email = "strongsand@fastmail.com";
certs."proot.party" = {
webroot = null;
dnsProvider = "porkbun";
credentialFiles = {
"PORKBUN_API_KEY_FILE" = "/run/secrets/proot.party/PORKBUN_API_KEY";
"PORKBUN_SECRET_API_KEY_FILE" = "/run/secrets/proot.party/PORKBUN_SECRET_API_KEY";
};
};
};
services.peertube = {
enable = true;
configureNginx = true;
smtp.createLocally = true;
database.createLocally = true;
localDomain = "proot.party";
redis.createLocally = true;
listenWeb = 80;
enableWebHttps = true;
secrets.secretsFile = "/run/secrets/peertube";
};