loptland: nginx maybe this helps?
This commit is contained in:
		
							parent
							
								
									2fc804dc9f
								
							
						
					
					
						commit
						4b8bd30521
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		|  | @ -16,8 +16,6 @@ in | |||
| { | ||||
|   imports = [ ./hardware.nix ]; | ||||
| 
 | ||||
|   environment.systemPackages = [ pkgs.forgejo-cli ]; | ||||
| 
 | ||||
|   sops.secrets = { | ||||
|     forgejo_db_password = { | ||||
|       inherit sopsFile; | ||||
|  | @ -34,13 +32,22 @@ in | |||
| 
 | ||||
|   services.nginx = { | ||||
|     enable = true; | ||||
|     recommendedProxySettings = true; | ||||
| 
 | ||||
|     virtualHosts = { | ||||
|       "git.${domainName}" = { | ||||
|         locations."/" = { | ||||
|           proxyPass = "http://localhost:${toString forgejoPort}/"; | ||||
|         }; | ||||
|       }; | ||||
| 
 | ||||
|       "${domainName}" = { | ||||
|         locations."/" = { | ||||
|           return = "404 This Site does not exist yet"; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|   }; | ||||
| 
 | ||||
|   services.forgejo = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue