In this video we will install the jenkins using the jenkins official document and install the nginx for creating the jenins URL base login
1] Jenkins configration file for 80 with explanaton :-
server {
Listening on port 80 and serving requests for jenkins.shivm04.xyz
listen 80;
server_name jenkins.shivm04.xyz;
client_max_body_size 100M;
Logging access and error messages to separate files
access_log /var/log/nginx/jenkins.shivm04.xyz/access.log;
error_log /var/log/nginx/jenkins.shivm04.xyz/error.log;
location / {
Proxying requests to localhost:8080
proxy_pass http://localhost:8080;
Enabling HTTP/1.1 protocol
proxy_http_version 1.1;
Enabling WebSocket connections
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Setting the host header
proxy_set_header Host $host;
Bypassing the cache for WebSocket connections
proxy_cache_bypass $http_upgrade;
Setting Keep-Alive headers
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
Forwarding the scheme header
proxy_set_header X-Forwarded-Proto $scheme;
Forwarding the client IP address
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Forwarding the real IP address of the client
proxy_set_header X-Real-IP $remote_addr;
Configuring timeouts
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
send_timeout 1800;
Configuring buffer sizes
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
}
2] Then install the certbot in your server using below viedo description
• Create a a full website in AWS using ...
3] Jenkins configration file for 80 & 443 with descrption :-
server {
Listening on port 80 and serving requests for jenkins.shivm04.xyz
listen 80;
server_name jenkins.shivm04.xyz;
client_max_body_size 100M;
Redirecting all HTTP requests to HTTPS
return 301 https://$server_name$request_uri;
}
server {
Listening on port 443 and serving requests for jenkins.shivm04.xyz with SSL/TLS enabled
listen 443 ssl;
server_name jenkins.shivm04.xyz;
client_max_body_size 100M;
Configuring the SSL/TLS certificate and key files
ssl_certificate /etc/letsencrypt/live/jenkins.shivm04.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/jenkins.shivm04.xyz/privkey.pem;
Including the SSL/TLS options file generated by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
Configuring the SSL/TLS Diffie-Hellman parameters file generated by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
Proxying requests to localhost:8080
proxy_pass http://localhost:8080;
Enabling HTTP/1.1 protocol
proxy_http_version 1.1;
Enabling WebSocket connections
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Setting the host header
proxy_set_header Host $host;
Bypassing the cache for WebSocket connections
proxy_cache_bypass $http_upgrade;
Setting Keep-Alive headers
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
Forwarding the scheme header
proxy_set_header X-Forwarded-Proto $scheme;
Forwarding the client IP address
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Forwarding the real IP address of the client
proxy_set_header X-Real-IP $remote_addr;
Configuring timeouts
proxy_read_timeout 1800;
proxy_connect_timeout 1800;
proxy_send_timeout 1800;
send_timeout 1800;
Configuring buffer sizes
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
Logging access and error messages to separate files
access_log /var/log/nginx/jenkins.shivm04.xyz/access.log;
error_log /var/log/nginx/jenkins.shivm04.xyz/error.log;
}
Смотрите видео Jnekins Installation on ubuntu 20 aws linux server instance and domain URL based login | GODADDY онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Devops TerraByte 05 Апрель 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 39 раз и оно понравилось 0 людям.