nixos/object: Add HedgeDoc
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				CI / Check, build and cache Nix flake (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	CI / Check, build and cache Nix flake (push) Has been cancelled
				
			This commit is contained in:
		@@ -376,6 +376,11 @@ in
 | 
			
		||||
        locations."/".proxyPass = "http://localhost:8989";
 | 
			
		||||
        useACMEHost = pubDomain;
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      "md.${pubDomain}" = {
 | 
			
		||||
        locations."/".proxyPass = "http://object-ctr.${domain}:3000";
 | 
			
		||||
        useACMEHost = pubDomain;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    minio =
 | 
			
		||||
 
 | 
			
		||||
@@ -48,11 +48,17 @@ in
 | 
			
		||||
                  group = config.my.user.config.group;
 | 
			
		||||
                };
 | 
			
		||||
                "object/atticd.env" = {};
 | 
			
		||||
                "object/hedgedoc.env" = {};
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
 | 
			
		||||
            firewall = {
 | 
			
		||||
              tcp.allowed = [ 9000 9001 config.services.sharry.config.bind.port 8069 ];
 | 
			
		||||
              tcp.allowed = [
 | 
			
		||||
                9000 9001
 | 
			
		||||
                config.services.sharry.config.bind.port
 | 
			
		||||
                8069
 | 
			
		||||
                config.services.hedgedoc.settings.port
 | 
			
		||||
              ];
 | 
			
		||||
            };
 | 
			
		||||
 | 
			
		||||
            user.homeConfig = {
 | 
			
		||||
@@ -194,6 +200,26 @@ in
 | 
			
		||||
                };
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
 | 
			
		||||
            hedgedoc = {
 | 
			
		||||
              enable = true;
 | 
			
		||||
              environmentFile = config.age.secrets."object/hedgedoc.env".path;
 | 
			
		||||
              settings = {
 | 
			
		||||
                domain = "md.${pubDomain}";
 | 
			
		||||
                protocolUseSSL = true;
 | 
			
		||||
                db = {
 | 
			
		||||
                  dialect = "postgresql";
 | 
			
		||||
                  username = "hedgedoc";
 | 
			
		||||
                  database = "hedgedoc";
 | 
			
		||||
                  host = "colony-psql";
 | 
			
		||||
                };
 | 
			
		||||
                host = "::";
 | 
			
		||||
                allowAnonymous = false;
 | 
			
		||||
                allowAnonymousEdits = true;
 | 
			
		||||
                email = true;
 | 
			
		||||
                allowEmailRegister = false;
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
          };
 | 
			
		||||
        }
 | 
			
		||||
        (mkIf config.my.build.isDevVM {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user