Lab 5 (Jenkins Slave Configuration)
Lab 5 (Jenkins Slave Configuration)
STEP 3- By default SSH plugin not installed in your Master Instance. We have to install
manually.
manage plugins -> search ssh in available tab -> select check box for ssh plugin to install
without restart.
upstream app_server {
server 127.0.0.1:8888 fail_timeout=0;
}
server {
listen 80;
listen [::]:80 default ipv6only=on;
server_name ec2-34-207-115-93.compute-1.amazonaws.com;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
if (!-f $request_filename) {
proxy_pass http://app_server;
break;
}
}
}
Link the configuration from sites-available to sites-enabled
sudo ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/
sudo service nginx restart
Copy your Private Key code and Select Enter Directly and paste your Master Node
Private Key
Look for Credentials and select Ubuntu and save it.
Node is created
Open node and Click on Log to check Connections will be allowed or not.