1. nginx的配置

location /jenkinsno {
            index  index.html index.htm;
            proxy_pass http://127.0.0.1:8081;
            proxy_connect_timeout 3000s;
            proxy_send_timeout 3000s;
            proxy_read_timeout 3000s;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_http_version 1.1;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            client_max_body_size    100m;
       }

location /jenkins {
            index  index.html index.htm;
            proxy_pass http://127.0.0.1:8080;
            proxy_connect_timeout 3000s;
            proxy_send_timeout 3000s;
            proxy_read_timeout 3000s;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_http_version 1.1;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            client_max_body_size    100m;
       }

2. Jenkins的启动命令

docker run -u root --network jenkins -d -p 8081:8080 -p 50001:50000 -e JENKINS_OPTS="--prefix=/jenkinsno" -v jenkins-datanodocker:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock  -v /home/dockerorgnodocker:/home jenkinsci/blueocean

 

3. nginx + django

https://www.alibabacloud.com/blog/deploy-django-application-on-alibaba-cloud_595833?spm=a2796.8276801.5363776690.17.67a1656chwog8M

Deploy Django Application on Alibaba Cloud

Django部署阿里云服务时候报错:SQLite 3.8.3 or later is required (found 3.7.17)
https://blog.csdn.net/qq_39969226/article/details/92218635

 

相关文章:

  • 2021-06-22
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-11-23
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2023-03-19
  • 2021-11-23
  • 2022-12-23
  • 2021-11-19
  • 2021-09-03
相关资源
相似解决方案