Keycloak standalond setup on Ubuntu 20 with Nginx not working

Hello, I am trying to deploy keycloak standalone for the last week without success.
I get it running up to point where intro screen is shown and after that not much works, practically nothing. Here is the process I am doing to set it up(all done as root user):

  1. Install fresh Ubuntu 20 image on a VPS
  2. Install: nginx, certbot(via snap as per instructions) and download latest keycloak version with wget from “Downloads” section
  3. Unzip and rename folder to “keycloak”
  4. Setup a systemd service, here is service file:
Description=Keycloak Standalone

ExecStart=/root/keycloak/bin/ -Dkeycloak.frontendUrl=

  1. Change config in `/keycloak/standalone/config/standalone.xml’ as per this
  2. Setup nginx config (i remove default one) like this:
server {
    listen        443 ssl;

    ssl_certificate      /etc/letsencrypt/live/;
    ssl_certificate_key  /etc/letsencrypt/live/;

    location / {
        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-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_set_header X-Forwarded-Proto $scheme;

server {
    if ($host = {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    listen [::]:80;
    return 404; # managed by Certbot

  1. Setup ssl with certbot with
certbot certonly -d

After that I can see the first window of keycloak app but cannot acces the admin panel, it looks like nginx cannot find(properly proxy) static files. I am strugling with this for days can anyone help out ?