1. pacman -S jenkin-ci
(Maybe default port is 8090, you can edit at /etc/conf.d/jenkins)
2. edit /etc/nginx/nginx.conf
server {
listen 80;
server_name jenkins.domain.tld;
location / {
proxy_pass http://localhost:8090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 150;
proxy_send_timeout 100;
proxy_read_timeout 100;
proxy_buffers 4 32k;
client_max_body_size 8m;
client_body_buffer_size 128k;
}
}
Source : Jenkins behind an NGinX reverse proxy
NOTICE :
In my case, /etc/hosts setting is not allowed localhost.
So I use proxy_pass http://127.0.0.1:8090;
No comments:
Post a Comment