更新时间:2022-06-20 18:35:44
这是我必须做的:
在适当的服务器"部分下的 NGINX 配置中设置一个位置:
In NGINX config under an appropriate 'server' section set up a location:
location /rundeck/ {
proxy_pass http://localhost:4440;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Rundeck 配置:
Rundeck config:
sed -i "/^grails.serverURL/c grails.serverURL = ${RUNDECK_URL}" /etc/rundeck/rundeck-config.properties
sed -i "/^framework.server.url/c framework.server.url = ${RUNDECK_URL}" /etc/rundeck/framework.properties
sed -i '/^RDECK_JVM="$RDECK_JVM/ s/"$/ -Dserver.web.context=\/rundeck"/' /etc/rundeck/profile
RUNDECK_URL
应该指向你的 NGINX ip(dns 名称)所以 http://my-nginx.com/rundeck
where RUNDECK_URL
should point to you NGINX ip (dns name) so http://my-nginx.com/rundeck