docker Nginx ssl 配置 API 代理
摘要:sudo docker run -itd --privileged=true --restart=always --name=sea_ngnix_ssl_test --net=host -v /opt/docker/nginx/ssl/log/:/var/log/nginx/ -v /opt/doc
阅读全文
posted @
2023-11-13 10:02
lshan
阅读(123)
推荐(0) 编辑
nginx 防盗链配置
摘要:原文:https://www.cnblogs.com/imcati/p/11743922.html 背景:防止第三方引用链接访问我们的图片,消耗服务器资源和网络流量,我们可以在服务器上做防盗链限制。 实现防盗链的方式有两种:refer方式和签名方式。 refer方式实现防盗链 工作模块:ngx_ht
阅读全文
posted @
2021-08-23 16:21
lshan
阅读(326)
推荐(0) 编辑
docker nginx 部署
摘要:官网:https://hub.docker.com/_/nginx 前端UI发布: 将前端打包后的编译文件dict 挂载到 /usr/share/nginx/html/ docker run -it -d --restart unless-stopped -p 8080:80 --name bx_n
阅读全文
posted @
2021-08-20 18:26
lshan
阅读(78)
推荐(0) 编辑
nginx 代理 mysql
摘要:场景: 利用ngnix 代理mysql /ftp (所有的流式应用) config: cat /etc/nginx/nginx.conf #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/erro
阅读全文
posted @
2019-11-13 23:31
lshan
阅读(1499)
推荐(0) 编辑
nginx 代理ftp
摘要:nginx1.9之后直接使用Stream配置就可以了,当然需要先安装stream模块 1.nginx 增加tcp ./configure --with-stream --with-pcre=../pcre-8.38 ./configure --with-stream --without-http_r
阅读全文
posted @
2019-11-13 15:29
lshan
阅读(4053)
推荐(0) 编辑
ngnix的使用反向代理-负载均衡,限流(2)
摘要:原文参考:https://blog.csdn.net/zy1471162851/article/details/91795712 Nginx业务服务器状态 down:表示当前server暂时不参与负载 weight:默认为1,weight越大,负载的权重就越大 max_fails:允许请求失败的次数
阅读全文
posted @
2019-09-27 10:18
lshan
阅读(413)
推荐(0) 编辑
ngnix 使用--正反向代理(1) 前后台分离部署
摘要:常用1: sudo docker run -itd --restart=always -p 8888:80 --name zhipin_admin_web -m 400m --memory-reservation 300m -v /opt/docker/sftp/upload/dep_web/:/u
阅读全文
posted @
2019-09-26 20:00
lshan
阅读(225)
推荐(0) 编辑
ngnix install 及配置详解
摘要:docker : 官网:https://hub.docker.com/_/nginx step 1: sudo docker pull nginx step2 : sudo mkdir -p /data/ngnixvi ngnix.conf ngnix.conf : user nginx; work
阅读全文
posted @
2019-09-16 12:14
lshan
阅读(207)
推荐(0) 编辑