diff --git a/system/hosts/server/keycloak.nix b/system/hosts/server/keycloak.nix
index da07cd8..77d9f93 100644
--- a/system/hosts/server/keycloak.nix
+++ b/system/hosts/server/keycloak.nix
@@ -15,7 +15,7 @@ in {
       http-host = "127.0.0.1";
       http-port = 5739;
       https-port = 5740;
-      proxy = "edge";
+      proxy-headers = "xforwarded";
     };
   };
   services.nginx.virtualHosts."keycloak.${cfg.domainName}" = {