Added landing page to nginx config - media

This commit is contained in:
Random936 2024-11-30 22:04:37 -08:00
parent 8458b6327a
commit da2c1c9797

View File

@ -102,11 +102,21 @@
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {
# Landing Page (randomctf.com)
"randomctf.com" = {
enableACME = true;
forceSSL = true;
root = "/var/www/randomctf.com";
};
# Nextcloud
${config.services.nextcloud.hostName} = { ${config.services.nextcloud.hostName} = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
}; };
# Gitea
"git.randomctf.com" = { "git.randomctf.com" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
@ -126,6 +136,7 @@
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
certs = { certs = {
"randomctf.com".email = "admin@randomctf.com";
${config.services.nextcloud.hostName}.email = "admin@randomctf.com"; ${config.services.nextcloud.hostName}.email = "admin@randomctf.com";
${config.services.gitea.settings.server.DOMAIN}.email = "admin@randomctf.com"; ${config.services.gitea.settings.server.DOMAIN}.email = "admin@randomctf.com";
}; };