Setup db
This commit is contained in:
		
							parent
							
								
									4ade46b204
								
							
						
					
					
						commit
						7846dceb8a
					
				
					 2 changed files with 13 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -29,9 +29,16 @@
 | 
			
		|||
        name = "GLaDTheresCake Akkoma";
 | 
			
		||||
        email = "akkoma@gladtherescake.eu";
 | 
			
		||||
        notify_email = "no-reply@akkoma.gladtherescake.eu";
 | 
			
		||||
        emails.mailer = {
 | 
			
		||||
          enabled = true;
 | 
			
		||||
          adapter = "Swoosh.Adapters.Sendmail";
 | 
			
		||||
          cmd_path = "/run/wrappers/bin/sendmail";
 | 
			
		||||
          cmd_args = "-N delay,failure,success";
 | 
			
		||||
          qmail = true;
 | 
			
		||||
        };
 | 
			
		||||
        description = "Lillian's Akkoma server!";
 | 
			
		||||
        languages = ["en" "nl"];
 | 
			
		||||
        registrations_open = true;
 | 
			
		||||
        registrations_open = false;
 | 
			
		||||
        max_pinned_statuses = 10;
 | 
			
		||||
        cleanup_attachments = true;
 | 
			
		||||
      };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -94,7 +94,7 @@
 | 
			
		|||
    enable = true;
 | 
			
		||||
 | 
			
		||||
    # Ensure the database, user, and permissions always exist
 | 
			
		||||
    ensureDatabases = ["nextcloud" "onlyoffice"];
 | 
			
		||||
    ensureDatabases = ["nextcloud" "onlyoffice" "akkoma"];
 | 
			
		||||
    ensureUsers = [
 | 
			
		||||
      {
 | 
			
		||||
        name = "nextcloud";
 | 
			
		||||
| 
						 | 
				
			
			@ -104,6 +104,10 @@
 | 
			
		|||
        name = "onlyoffice";
 | 
			
		||||
        ensurePermissions."DATABASE onlyoffice" = "ALL PRIVILEGES";
 | 
			
		||||
      }
 | 
			
		||||
      {
 | 
			
		||||
        name = "akkoma";
 | 
			
		||||
        ensurePermissions."DATABASE akkoma" = "ALL PRIVILEGES";
 | 
			
		||||
      }
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue