小编Dev*_*nte的帖子

如何向Jenkins管道添加超时步骤

当您使用自由样式项目时,您可以设置在20分钟后,如果没有结束,则构建将中止.如何通过Jenkins多分支管道项目实现这一目标?

jenkins jenkins-pipeline

77
推荐指数
4
解决办法
6万
查看次数

詹金斯管道条件步骤/阶段

如何在特定分支时运行构建步骤/阶段.

IE为每个拉取请求/分支运行一切,但如果正在构建的分支命名为部署,那么还运行部署步骤?

groovy jenkins jenkins-pipeline

64
推荐指数
4
解决办法
9万
查看次数

在 nginx 中作为上游服务器到 postgres 数据库的 TCP 代理

问题:是否可以将 Nginx 设置为数据库的反向代理?这些是我目前拥有的标志,我相信拥有该--with-stream模块足以将 TCP 流用于数据库。这是 PLUS 功能吗?

Nginx 配置选项:

--prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=%{_libdir}/nginx/modules --conf-path=/etc/nginx/nginx.conf -- error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --锁路径=/var/run/nginx。lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/ var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx -- group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module -- with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module -- with-file-aio --with-http_v2_module --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,--as-needed ' --with-ipv6

Nginx 配置

stream {

    include conf.d/streams/*.conf;
}
Run Code Online (Sandbox Code Playgroud)

的内容 conf.d/streams/upstream.conf

upstream database_server {
    least_conn;
    keepalive 512;
    server 192.168.99.103:32778 max_fails=5 …
Run Code Online (Sandbox Code Playgroud)

database postgresql reverse-proxy nginx

12
推荐指数
2
解决办法
1万
查看次数