Reviewed-by: Aleix Boné <abonerib@bsc.es> Reviewed-by: Aleix Roca Nonell <aleix.rocanonell@bsc.es>
		
			
				
	
	
		
			30 lines
		
	
	
		
			679 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			679 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ config, lib, ... }:
 | 
						|
{
 | 
						|
  services.gitea = {
 | 
						|
    enable = true;
 | 
						|
    appName = "Gitea in the jungle";
 | 
						|
 | 
						|
    settings = {
 | 
						|
      server = {
 | 
						|
        ROOT_URL = "https://jungle.bsc.es/git/";
 | 
						|
        LOCAL_ROOT_URL = "https://jungle.bsc.es/git/";
 | 
						|
        LANDING_PAGE = "explore";
 | 
						|
      };
 | 
						|
      metrics.ENABLED = true;
 | 
						|
      service = {
 | 
						|
        REGISTER_MANUAL_CONFIRM = true;
 | 
						|
        ENABLE_NOTIFY_MAIL = true;
 | 
						|
      };
 | 
						|
      log.LEVEL = "Warn";
 | 
						|
 | 
						|
      mailer = {
 | 
						|
        ENABLED       = true;
 | 
						|
        FROM          = "jungle-robot@bsc.es";
 | 
						|
        PROTOCOL      = "sendmail";
 | 
						|
        SENDMAIL_PATH = "/run/wrappers/bin/sendmail";
 | 
						|
        SENDMAIL_ARGS = "--";
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |