# Beginner: Setting up Keycloak proxy

**URL:** https://forum.keycloak.org/t/beginner-setting-up-keycloak-proxy/29624
**Category:** Getting advice
**Tags:** authentication
**Created:** [February 20, 2025, 2:33pm UTC](https://forum.keycloak.org/t/beginner-setting-up-keycloak-proxy/29624 "2025-02-20T14:33:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vman101](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/vman101/32/11985_2.png) [@vman101](https://forum.keycloak.org/u/vman101)
#### Post date: [February 20, 2025, 2:33pm UTC](https://forum.keycloak.org/t/beginner-setting-up-keycloak-proxy/29624/1 "2025-02-20T14:33:16Z")

</div>

Hello!

I am currently trying to make a reverse proxy setup work using nginx as proxy and keycloak as authentication server.

I am verny new to this and I have to say that I am having trouble getting a basic setup to work…

The Scenario:

The whole system should run inside a Private Docker Network, with only nginx exposed.

Now I had a simple setup going, where i would just return a 301 upon connecting to the server, and redirect to Keycloak login for session authentication, which at that point was running also exposed on the localhost, and so I could just redirect the client to the address on the localhost pointing to Keycloak.  
Since then I tried moving the Keycloak login behind a proxy, and since then, nothing has been working.

The most obvious changes are first that no css gets loaded, so I just get plain Html, and second, when i try to log in, I get a error from saying that cookies are missing.

I have tried looking on the internet a lot, but i feel like I don’t even know what to look for.  
Maybe someone can point me in a direction or resource, to set this up!

Thank you very much!

---

<div class="post-metadata">

### Author: ![embesozzi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/embesozzi/32/12390_2.png) [@embesozzi](https://forum.keycloak.org/u/embesozzi)
#### Post date: [February 20, 2025, 4:23pm UTC](https://forum.keycloak.org/t/beginner-setting-up-keycloak-proxy/29624/2 "2025-02-20T16:23:15Z")

</div>

Here are 1 and 2 workshops with NGINX examples.

[1] [keycloak-workshop-stepup-mfa-biometrics/docker-compose-lb.yml at main · embesozzi/keycloak-workshop-stepup-mfa-biometrics · GitHub](https://github.com/embesozzi/keycloak-workshop-stepup-mfa-biometrics/blob/main/docker-compose-lb.yml)  
[2] [microsoft-verifiable-credentials-workshop/docker-compose-lb.yml at main · twogenidentity/microsoft-verifiable-credentials-workshop · GitHub](https://github.com/twogenidentity/microsoft-verifiable-credentials-workshop/blob/main/docker-compose-lb.yml)

---

<div class="post-metadata">

### Author: ![vman101](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/vman101/32/11985_2.png) [@vman101](https://forum.keycloak.org/u/vman101)
#### Post date: [February 20, 2025, 4:39pm UTC](https://forum.keycloak.org/t/beginner-setting-up-keycloak-proxy/29624/3 "2025-02-20T16:39:55Z")

</div>

Thank you very much!

I will look into it!
