Updated ACME and nginx configurations to replace "internal.hoyer.world" with "openwebui.hoyer.world". This ensures correct routing and certificate management for the updated domain.
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			903 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			903 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   pkgs,
 | |
|   lib,
 | |
|   config,
 | |
|   ...
 | |
| }:
 | |
| {
 | |
|   users.users.nginx.extraGroups = [ "acme" ];
 | |
|   services.nginx = {
 | |
|     enable = true;
 | |
|     clientMaxBodySize = "1000M";
 | |
|     appendHttpConfig = ''
 | |
|       log_format vcombined '$host:$server_port '
 | |
|               '$remote_addr - $remote_user [$time_local] '
 | |
|               '"$request" $status $body_bytes_sent '
 | |
|               '"$http_referer" "$http_user_agent"';
 | |
|       access_log /var/log/nginx/access.log vcombined;
 | |
|     '';
 | |
|     recommendedGzipSettings = true;
 | |
|     recommendedOptimisation = true;
 | |
|     recommendedProxySettings = true;
 | |
|     recommendedTlsSettings = true;
 | |
|     virtualHosts = {
 | |
|       "openwebui.hoyer.world" = {
 | |
|         enableACME = false;
 | |
|         useACMEHost = "openwebui.hoyer.world";
 | |
|         forceSSL = true;
 | |
|         locations."/" = {
 | |
|           proxyPass = "http://127.0.0.1:${toString config.services.open-webui.port}";
 | |
|         };
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 |