Keycloak: Difference between revisions

Onny (talk | contribs)
Onny (talk | contribs)
Fix for running http only
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


== Setup ==
== Setup ==
Following configuration will enable a minimal Keycloak instance for testing purpose<syntaxhighlight lang="nix">
Following configuration will enable a minimal and insecure Keycloak instance for '''testing purpose'''.<syntaxhighlight lang="nix">
environment.etc."keycloak-database-pass".text = "PWD";
environment.etc."keycloak-database-pass".text = "PWD";
services.keycloak = {
services.keycloak = {
Line 11: Line 11:
     hostname = "localhost";
     hostname = "localhost";
     http-enabled = true;
     http-enabled = true;
    hostname-strict-https = false;
   };
   };
   database.passwordFile = "/etc/keycloak-database-pass";
   database.passwordFile = "/etc/keycloak-database-pass";
};
};
</syntaxhighlight>
</syntaxhighlight>After applying the configuration the Keycloak management interface will be available at http://localhost. Login with username <code>admin</code> and password <code>changeme</code>.


== Tips and tricks ==
== Tips and tricks ==