zoukankan      html  css  js  c++  java
  • nginx转发Jenkins多个实例 + nginx django

    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
    用一个例子来演示会更加清晰
  • 相关阅读:
    javascript概述
    linux系统编程(一)概述
    软件工程
    SQL
    数据结构和算法(一)概述
    cpp标准库
    c语言标准库
    c/c++概述
    编程语言的思考
    GCD学习
  • 原文地址:https://www.cnblogs.com/hixiaowei/p/14422831.html
Copyright © 2011-2022 走看看