homeassistant: add domain forwarding
This commit is contained in:
		
							parent
							
								
									9050e0aefb
								
							
						
					
					
						commit
						476e2e88c5
					
				
					 1 changed files with 18 additions and 8 deletions
				
			
		|  | @ -62,16 +62,26 @@ in | |||
|         }; | ||||
|       }; | ||||
| 
 | ||||
|       "${domainName}" = { | ||||
|       "ha.${domainName}" = { | ||||
|         forceSSL = cfg.enableAcme; | ||||
|         useACMEHost = mkIf cfg.enableAcme domainName; | ||||
| 
 | ||||
|         locations."/" = { | ||||
|           root = /var/www/website; | ||||
|           index = "index.html"; | ||||
|           # tailscale ip | ||||
|           proxyPass = "http://100.86.23.74:8123"; | ||||
|         }; | ||||
|       }; | ||||
| 
 | ||||
|       # "${domainName}" = { | ||||
|       #   forceSSL = cfg.enableAcme; | ||||
|       #   useACMEHost = mkIf cfg.enableAcme domainName; | ||||
| 
 | ||||
|       #   locations."/" = { | ||||
|       #     root = /var/www/website; | ||||
|       #     index = "index.html"; | ||||
|       #   }; | ||||
|       # }; | ||||
| 
 | ||||
|       "_" = { | ||||
|         forceSSL = cfg.enableAcme; | ||||
|         useACMEHost = mkIf cfg.enableAcme domainName; | ||||
|  | @ -208,11 +218,11 @@ in | |||
|     ]; | ||||
|   }; | ||||
| 
 | ||||
|   snowfallorg.users.${config.${namespace}.user.name}.home.config = { | ||||
|     programs.fish.shellInit = '' | ||||
|       eval $(op signin) | ||||
|     ''; | ||||
|   }; | ||||
|   # snowfallorg.users.${config.${namespace}.user.name}.home.config = { | ||||
|   #   programs.fish.shellInit = '' | ||||
|   #     eval $(op signin) | ||||
|   #   ''; | ||||
|   # }; | ||||
| 
 | ||||
|   system.stateVersion = "24.11"; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue