nixos/middleman: Let's Encrypt for main domain
This commit is contained in:
		@@ -39,15 +39,16 @@
 | 
			
		||||
                  owner = "acme";
 | 
			
		||||
                  group = "acme";
 | 
			
		||||
                };
 | 
			
		||||
                "cloudflare-credentials.conf" = {
 | 
			
		||||
                  owner = "acme";
 | 
			
		||||
                  group = "acme";
 | 
			
		||||
                };
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
 | 
			
		||||
            firewall = {
 | 
			
		||||
              tcp.allowed = [ "http" "https" ];
 | 
			
		||||
            };
 | 
			
		||||
 | 
			
		||||
            tmproot.persistence.config.directories = [
 | 
			
		||||
            ];
 | 
			
		||||
          };
 | 
			
		||||
 | 
			
		||||
          users = {
 | 
			
		||||
@@ -101,6 +102,13 @@
 | 
			
		||||
                    EXEC_PATH=${script}
 | 
			
		||||
                  '';
 | 
			
		||||
                };
 | 
			
		||||
                "${lib.my.pubDomain}" = {
 | 
			
		||||
                  extraDomainNames = [
 | 
			
		||||
                    "*.${lib.my.pubDomain}"
 | 
			
		||||
                  ];
 | 
			
		||||
                  dnsProvider = "cloudflare";
 | 
			
		||||
                  credentialsFile = config.age.secrets."cloudflare-credentials.conf".path;
 | 
			
		||||
                };
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
          };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user