Attempt to support gogs
Gogs claims to be an easy-to-use Git server and web frontend written in golang. I'm eager to try it as an alternative to cgit.
This commit is contained in:
		
							parent
							
								
									73db632090
								
							
						
					
					
						commit
						c23e263a9f
					
				
					 1 changed files with 17 additions and 0 deletions
				
			
		|  | @ -78,10 +78,20 @@ in { | ||||||
|   ############################################################################## |   ############################################################################## | ||||||
|   # Services |   # Services | ||||||
|   ############################################################################## |   ############################################################################## | ||||||
|  | 
 | ||||||
|   services.openssh.enable = true; |   services.openssh.enable = true; | ||||||
| 
 | 
 | ||||||
|   services.lorri.enable = true; |   services.lorri.enable = true; | ||||||
| 
 | 
 | ||||||
|  |   systemd.services.gogs = { | ||||||
|  |     enable = true; | ||||||
|  |     description = "Easy-to-use Git server written in golang"; | ||||||
|  |     script = "${pkgs.gogs}/bin/gogs web"; | ||||||
|  |     serviceConfig = { | ||||||
|  |       Type = "simple"; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|   systemd.services.monzo-token-server = { |   systemd.services.monzo-token-server = { | ||||||
|     enable = true; |     enable = true; | ||||||
|     description = "Ensure my Monzo access token is valid"; |     description = "Ensure my Monzo access token is valid"; | ||||||
|  | @ -151,6 +161,13 @@ in { | ||||||
|         # briefcase.learn as root. |         # briefcase.learn as root. | ||||||
|         root = /home/wpcarro/briefcase/learn/static; |         root = /home/wpcarro/briefcase/learn/static; | ||||||
|       }; |       }; | ||||||
|  |       "git.wpcarro.dev" = { | ||||||
|  |         addSSL = true; | ||||||
|  |         enableACME = true; | ||||||
|  |         locations."/" = { | ||||||
|  |           proxyPass = "http://localhost:3000"; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|       "blog.wpcarro.dev" = { |       "blog.wpcarro.dev" = { | ||||||
|         addSSL = true; |         addSSL = true; | ||||||
|         enableACME = true; |         enableACME = true; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue