server.useForwardHeaders=true
Hi Reiner,
thx for the info but it did not help so far. With server.useForwardHeaders=true I needed to change my Nginx config a little bit to get it working with Firefox. But still Chrome does not work with HTTPS.
When I look in the web console from Chrome I get an access to
https://rundecktest02.gvl.local/j_security_check
with the status canceled. I wonder what this means?
Hi again,
I found the answer to my problem at https://github.com/rundeck/rundeck/issues/4417
If someone comes to this by a search result, my working Nginx configuration looks like this now:
===========================================
server {
listen *:80;
server_name rundeck.example.org;
root /var/www/;
return 301 https://$host$request_uri;
access_log present combined;
error_log present;
}
server {
listen *:443 ssl;
server_name rundeck.example.org;
ssl_certificate /etc/certs/rundeck.example.org.crt;
ssl_certificate_key /etc/certs/rundeck.example.org.key;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 5m;
ssl_protocols TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA;
ssl_prefer_server_ciphers on;
index index.html index.htm index.php;
access_log present combined;
error_log present;
root /var/www/;
location / {
proxy_pass http://127.0.0.1:4440;
proxy_read_timeout 90s;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
proxy_redirect http://localhost:4440 https://rundeck.example.org;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
===========================================
Most important is the line
proxy_set_header X-Forwarded-Proto $scheme;
And I also set
server.useForwardHeaders=true
in the rundeck-config.properties.
Michael