Enable gitea in tent
Reviewed-by: Aleix Boné <abonerib@bsc.es> Reviewed-by: Aleix Roca Nonell <aleix.rocanonell@bsc.es>
This commit is contained in:
		
							parent
							
								
									892489a02f
								
							
						
					
					
						commit
						f7db23eaee
					
				| @ -10,6 +10,7 @@ | |||||||
|     ./nginx.nix |     ./nginx.nix | ||||||
|     ./nix-serve.nix |     ./nix-serve.nix | ||||||
|     ./gitlab-runner.nix |     ./gitlab-runner.nix | ||||||
|  |     ./gitea.nix | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   # Select the this using the ID to avoid mismatches |   # Select the this using the ID to avoid mismatches | ||||||
|  | |||||||
							
								
								
									
										29
									
								
								m/tent/gitea.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								m/tent/gitea.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,29 @@ | |||||||
|  | { 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 = "--"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
| @ -34,6 +34,12 @@ in | |||||||
|         real_ip_recursive on; |         real_ip_recursive on; | ||||||
|         real_ip_header X-Forwarded-For; |         real_ip_header X-Forwarded-For; | ||||||
| 
 | 
 | ||||||
|  |         location /git { | ||||||
|  |           rewrite ^/git$ / break; | ||||||
|  |           rewrite ^/git/(.*) /$1 break; | ||||||
|  |           proxy_pass http://127.0.0.1:3000; | ||||||
|  |           proxy_redirect http:// $scheme://; | ||||||
|  |         } | ||||||
|         location /cache { |         location /cache { | ||||||
|           rewrite ^/cache/(.*) /$1 break; |           rewrite ^/cache/(.*) /$1 break; | ||||||
|           proxy_pass http://127.0.0.1:5000; |           proxy_pass http://127.0.0.1:5000; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user