I tried to setup keycloak on my nixos server and only get this message:
I am using this config for it:
# - Sops-Nix -
sops.secrets."keycloak/psql_pass" = {
owner = globalArgs.defaultSystemUsername;
};
# - Services -
services.nginx = {
enable = true;
# enable recommended settings
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedTlsSettings = true;
recommendedProxySettings = true;
virtualHosts = {
"x.com" = {
enableACME = true;
locations = {
"/cloak/" = {
proxyPass = "http://localhost:${
toString config.services.keycloak.settings.http-port
}/cloak/";
};
};
};
};
};
services.keycloak = {
enable = true;
database = {
passwordFile = config.sops.secrets."postgres/pass".path;
};
initialAdminPassword = "xxx";
settings = {
hostname = "x.com";
http-relative-path = "/cloak";
http-port = 38080;
http-enabled = true;
proxy-headers = "xforwarded";
};
};
kc.sh bootstrap-admin also fails, which as far as Ive heard is normal on nixos setups.
Do I have to install a browser on my server to navigate to localhost and set it up?