洞察纵观鸿蒙next版本,如何凭借FinClip加强小程序的跨平台管理,确保企业在数字化转型中的高效运营和数据安全?
1103
2022-10-26
设置jenkins代理
Jenkins runs on port 8080. We can establish a proxy from port 80 -> 8080 so Jenkins can be accessed via:
of the default
by installing Nginx.
sudo aptitude -y install nginx
Remove the default settings for Nginx
cd /etc/nginx/sites-available
sudo rm default ../sites-enabled/default
Create the new configuration file
sudo touch jenkins
Copy the following code into the newly created jenkins file.
upstream app_server { server 127.0.0.1:8080 fail_timeout=0;}server { listen 80; listen [::]:80 default ipv6only=on; server_name ; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $ proxy_redirect off; if (!-f $request_filename) { proxy_pass break; } }}
Create a symbolic link between sites-available and sites-enabled:
sudo ln -s /etc/nginx/sites-available/jenkins /etc/nginx/sites-enabled/
Restart the Nginx proxy service
sudo service nginx restart
Jenkins will now be accessible from port 80.
作者:iTech
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~