3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rundeckでリバースプロキシ

Posted at

rundeckでリバースプロキシ

実際に動かした時のメモ

Centos6.4 rpmでのインストール環境

  • nginx.conf
http {
.....
    upstream rundeck_cluster {
        server 192.168.20.56:4440;
    }

    server {
        listen       80 default_server;
        server_name  example.com;
        location /rundeck {
            proxy_pass http://rundeck_cluster;

            proxy_redirect http://$host:4440/  /;
            proxy_redirect https://$host:4440/ https://$host/;
        }
    }
}

  • /etc/rundeck/profile
 export RDECK_JVM="-Djava.security.auth.login.config=/etc/rundeck/jaas-loginmodule.conf \
         -Dloginmodule.name=RDpropertyfilelogin \
         -Drdeck.config=/etc/rundeck \
         -Drdeck.base=/var/lib/rundeck \
         -Drundeck.server.configDir=/etc/rundeck \
         -Dserver.datastore.path=/var/lib/rundeck/data \
         -Drundeck.server.serverDir=/var/lib/rundeck \
         -Drdeck.projects=/var/rundeck/projects \
         -Drdeck.runlogs=/var/lib/rundeck/logs \
+        -Dserver.web.context=/rundeck \
         -Drundeck.config.location=/etc/rundeck/rundeck-config.properties \
         -Djava.io.tmpdir=$RUNDECK_TEMPDIR"
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?