nginx统计日志访问量前十的ip
awk '{array[$1]++}END{for (ip in array)print … 继续阅读 nginx统计日志访问量前十的ip
awk '{array[$1]++}END{for (ip in array)print … 继续阅读 nginx统计日志访问量前十的ip
apiVersion: apps/v1 kind: StatefulSet metadata: na… 继续阅读 maxUnavailable on kubernetes 1.24
默认不识别,需要在nginx.conf打开 underscores_in_headers on; #… 继续阅读 nginx识别带下划线的header
location / { default_type application/json; return… 继续阅读 nginx return json
apiVersion: networking.k8s.io/v1 kind: Ingress met… 继续阅读 ingress配置注解 支持websocket
server { listen 80 default_server reuseport; #list… 继续阅读 nginx https 空机头
location = /favicon.ico { log_not_found off; # log… 继续阅读 nginx忽略/favicon.ico日志
cfg: kubectl create configmap cfg –from-file=ngin… 继续阅读 kubernetes subPath挂载单个文件
svc: sessionAffinity: ClientIP sessionAffinityConf… 继续阅读 kubernetes pod 客户端ip会话亲和性
stream { allow 114.114.114.114; deny all; proxy_ti… 继续阅读 nginx tcp代理增加ssl
#!/bin/bash DATE=$(date +%d/%b/%Y:%H:%M) LOG_FILE=… 继续阅读 iptables自动屏蔽nginx攻击 IP
stream { allow 114.114.114.114; deny all; proxy_ti… 继续阅读 nginx stream tcp代理 增加白名单
设置allow、deny参数,也可作用于TCP和UDP代理: allow 114.114.114.1… 继续阅读 NGINX白名单配置
### mrdoc-nginx docker run -d –name mrdoc -p 1008… 继续阅读 docker run mrdoc 觅思文档
ssl_session_cache off;
client_max_body_size 10m;
# 快速安装 git clone https://github.com/pingostack/pin… 继续阅读 pingos直播推流系统
https://nginx-playground.wizardzines.com
如果后端的服务器返回502、504、执行超时等错误,自动将请求转发到upstream负载均衡池中的另… 继续阅读 nginx proxy_next_upstream实现故障转移
安装 apt install cpulimit 用法 限制firefox使用30% cpu 利用率 … 继续阅读 cpulimit限制CPU使用率