include /etc/nginx/mime.types;
server_name auth01.factorialsystems.io;
location / {
#proxy_pass https://127.0.0.1:8443;
proxy_pass http://localhost:8080;
proxy_set_header X-Forwarded-For $proxy_protocol_addr; # To forward the original client's IP address
proxy_set_header X-Forwarded-Proto $scheme; # to forward the original protocol (HTTP or HTTPS)
proxy_set_header Host $host; # to forward the original host requested by the client
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection ‘upgrade’;
proxy_set_header X-Real-IP $remote_addr;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/auth01.factorialsystems.io/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/auth01.factorialsystems.io/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 = auth01.factorialsystems.io) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
server_name auth01.factorialsystems.io;
return 404; # managed by Certbot
}
we have set proxy_address_forwarding inside the standalone.xml file, tried running the application with frontendUrl as shown below
./standalone.sh -Dkeycloak.frontendUrl=http://auth01.factorialsystems.io:8080/auth
--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/aec8c199-a6f6-41dd-bcff-999772cbf912n%40googlegroups.com.