title: Keycloak behind reverse proxy
body: <p>I installed keycloak standanlone on a server and try to use it behind a reverse Proxy through nginx. 
  Keycloak is bind to 127.0.0.1</p>
  
  <p>That it my nginx vhost config: </p>
  
  <pre><code>server {
  server_name auth.dp.net;
  location /auth {
      proxy_pass  http://localhost:8080;
      proxy_http_version 1.1;
  
          proxy_set_header Host               $host;
          proxy_set_header X-Real-IP          $remote_addr;
          proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
          proxy_set_header X-Forwarded-Proto  $scheme;
  }
  listen 443 ssl; # managed by Certbot
  ssl_certificate /etc/letsencrypt/live/auth.dp.net/fullchain.pem; # managed by Certbot
  ssl_certificate_key /etc/letsencrypt/live/auth.dp.net/privkey.pem; # managed by Certbot
  include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  }
  
  server {
  if ($host = auth.dp.net) {
      return 301 https://$host$request_uri;
  } # managed by Certbot
  listen 80;
  server_name auth.dp.net;
  return 404; # managed by Certbot
  }
  </code></pre>
  
  <p>But when I access <a href="https://auth.dp.net/auth" rel="nofollow noreferrer">https://auth.dp.net/auth</a> I get the following keycloak error:</p>
  
  <pre><code>Invalid parameter: redirect_uri
  </code></pre>
  
  <p>What is misssing in my configuration? </p>