This also explicitly sets X-Forwarded-Proto to https which fixes the warning "Non-secure context detected; cookies are not secured, and will not be available in cross-origin POST requests" which prevented the user account management page to load.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			379 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			379 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ ... }:
 | 
						|
{
 | 
						|
  services.keycloak = {
 | 
						|
    enable = true;
 | 
						|
    settings = {
 | 
						|
      hostname = "https://id.nekover.se";
 | 
						|
      hostname-admin = "https://keycloak-admin.nekover.se";
 | 
						|
      proxy-headers = "xforwarded";
 | 
						|
      http-enabled = true;
 | 
						|
      http-host = "127.0.0.1";
 | 
						|
      http-port = 8080;
 | 
						|
    };
 | 
						|
    database.passwordFile = "/secrets/keycloak-database-password.secret";
 | 
						|
  };
 | 
						|
}
 |