跳转到内容

SRE笔记

  • 密码
    • 短链
  • 服务器
  • 关于

nginx标签存档订阅

nginx统计日志访问量前十的ip

awk '{array[$1]++}END{for (ip in array)print … 继续阅读 nginx统计日志访问量前十的ip

  • 发表于: 2022-07-11 2022-07-11
  • 作者: erer, er
  • 分类: SRE
  • 标签: awk, bash, nginx
  • 发表评论: nginx统计日志访问量前十的ip

maxUnavailable on kubernetes 1.24

apiVersion: apps/v1 kind: StatefulSet metadata: na… 继续阅读 maxUnavailable on kubernetes 1.24

  • 发表于: 2022-06-16 2022-06-16
  • 作者: bfyt
  • 分类: SRE
  • 标签: https, I/O, k8s, kubernetes, nginx, yaml
  • 发表评论: maxUnavailable on kubernetes 1.24

nginx识别带下划线的header

默认不识别,需要在nginx.conf打开 underscores_in_headers on; #… 继续阅读 nginx识别带下划线的header

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: nginx
  • 发表评论: nginx识别带下划线的header

nginx return json

location / { default_type application/json; return… 继续阅读 nginx return json

  • 发表于: 2022-05-19 2022-05-19
  • 作者: bfyt
  • 分类: SRE
  • 标签: code, https, json, nginx
  • 发表评论: nginx return json

ingress配置注解 支持websocket

apiVersion: networking.k8s.io/v1 kind: Ingress met… 继续阅读 ingress配置注解 支持websocket

  • 发表于: 2022-04-24 2022-04-24
  • 作者: bili
  • 分类: SRE
  • 标签: http, https, I/O, ingress, k8s, kubernetes, nginx, proxy, yaml
  • 发表评论: ingress配置注解 支持websocket

nginx https 空机头

server { listen 80 default_server reuseport; #list… 继续阅读 nginx https 空机头

  • 发表于: 2022-03-17 2022-03-17
  • 作者: stnds
  • 分类: SRE
  • 标签: https, nginx
  • 发表评论: nginx https 空机头

nginx忽略/favicon.ico日志

location = /favicon.ico { log_not_found off; # log… 继续阅读 nginx忽略/favicon.ico日志

  • 发表于: 2022-03-01 2022-03-01
  • 作者: stnds
  • 分类: SRE
  • 标签: https, nginx
  • 发表评论: nginx忽略/favicon.ico日志

kubernetes subPath挂载单个文件

cfg: kubectl create configmap cfg –from-file=ngin… 继续阅读 kubernetes subPath挂载单个文件

  • 发表于: 2022-02-22 2022-02-22
  • 作者: stnds
  • 分类: SRE
  • 标签: bash, https, kubernetes, nginx, yaml
  • 发表评论: kubernetes subPath挂载单个文件

kubernetes pod 客户端ip会话亲和性

svc: sessionAffinity: ClientIP sessionAffinityConf… 继续阅读 kubernetes pod 客户端ip会话亲和性

  • 发表于: 2022-02-18 2022-02-18
  • 作者: stnds
  • 分类: SRE
  • 标签: hash, http, https, I/O, ingress, kubernetes, nginx, yaml
  • 发表评论: kubernetes pod 客户端ip会话亲和性

nginx tcp代理增加ssl

stream { allow 114.114.114.114; deny all; proxy_ti… 继续阅读 nginx tcp代理增加ssl

  • 发表于: 2022-02-13 2022-02-13
  • 作者: stnds
  • 分类: SRE
  • 标签: cache, https, nginx, proxy, ssl, tcp
  • 发表评论: nginx tcp代理增加ssl

iptables自动屏蔽nginx攻击 IP

#!/bin/bash DATE=$(date +%d/%b/%Y:%H:%M) LOG_FILE=… 继续阅读 iptables自动屏蔽nginx攻击 IP

  • 发表于: 2022-02-13 2022-02-13
  • 作者: stnds
  • 分类: SRE
  • 标签: awk, bash, grep, https, iptables, nginx
  • 发表评论: iptables自动屏蔽nginx攻击 IP

nginx stream tcp代理 增加白名单

stream { allow 114.114.114.114; deny all; proxy_ti… 继续阅读 nginx stream tcp代理 增加白名单

  • 发表于: 2022-01-15 2022-01-15
  • 作者: stnds
  • 分类: SRE
  • 标签: bash, https, nginx, proxy, tcp
  • 发表评论: nginx stream tcp代理 增加白名单

NGINX白名单配置

设置allow、deny参数,也可作用于TCP和UDP代理: allow 114.114.114.1… 继续阅读 NGINX白名单配置

  • 发表于: 2022-01-15 2022-01-15
  • 作者: stnds
  • 分类: SRE
  • 标签: bash, http, nginx, tcp
  • 发表评论: NGINX白名单配置

docker run mrdoc 觅思文档

### mrdoc-nginx docker run -d –name mrdoc -p 1008… 继续阅读 docker run mrdoc 觅思文档

  • 发表于: 2022-01-12 2022-01-12
  • 作者: stnds
  • 分类: SRE
  • 标签: alpine, bash, Docker, https, nginx
  • 发表评论: docker run mrdoc 觅思文档

nginx net/http: TLS handshake timeout

ssl_session_cache off;

  • 发表于: 2021-12-20 2021-12-20
  • 作者: tesla
  • 分类: SRE
  • 标签: cache, http, https, nginx, ssl
  • 发表评论: nginx net/http: TLS handshake timeout

nginx Request Entity Too Large

client_max_body_size 10m;

  • 发表于: 2021-12-20 2021-12-20
  • 作者: tesla
  • 分类: SRE
  • 标签: https, nginx
  • 发表评论: nginx Request Entity Too Large

pingos直播推流系统

# 快速安装 git clone https://github.com/pingostack/pin… 继续阅读 pingos直播推流系统

  • 发表于: 2021-12-13 2021-12-13
  • 作者: tesla
  • 分类: SRE
  • 标签: bash, git, https, nginx
  • 发表评论: pingos直播推流系统

nginx playground

https://nginx-playground.wizardzines.com

  • 发表于: 2021-11-24 2021-11-24
  • 作者: dn
  • 分类: SRE
  • 标签: https, nginx
  • 发表评论: nginx playground

nginx proxy_next_upstream实现故障转移

如果后端的服务器返回502、504、执行超时等错误,自动将请求转发到upstream负载均衡池中的另… 继续阅读 nginx proxy_next_upstream实现故障转移

  • 发表于: 2021-10-28 2021-10-28
  • 作者: dn
  • 分类: SRE
  • 标签: http, https, nginx, php, proxy
  • 发表评论: nginx proxy_next_upstream实现故障转移

cpulimit限制CPU使用率

安装 apt install cpulimit 用法 限制firefox使用30% cpu 利用率 … 继续阅读 cpulimit限制CPU使用率

  • 发表于: 2021-10-08 2021-10-08
  • 作者: dn
  • 分类: SRE
  • 标签: bash, cpu, https, nginx
  • 发表评论: cpulimit限制CPU使用率

分页

上一页 页码: 1 页码: 2 页码: 3 页码: 4 页码: 5 页码: 6 页码: 7 … 页码: 10 下一页

搜索

搜索:

近期评论

  • 周周 发表在《Kubernetes部署NextCloud网盘》
  • mysql m-s via gtid – SRE笔记 发表在《MySQL SET GTID_NEXT》
  • kangder 发表在《Kubernetes部署NextCloud网盘》
  • xs 发表在《Kubernetes部署NextCloud网盘》
  • test 发表在《gin不转义html标签》

标签

aws (15) bash (1123) Blockchain (28) centos (28) Docker (105) elasticsearch (26) eth (34) fil (39) go (129) golang (154) Grafana (13) hpc (15) http (299) https (1999) ingress (14) iptables (20) java (75) JVM (20) kubernetes (309) Linux (546) lotus (30) mongoDB (41) MySQL (184) nginx (112) php (25) python (148) redis (34) s3 (75) shell (20) springboot (32) tcp (69) tomcat (15) ubuntu (31) vue (18) windows (42) wordpress (14) zabbix (37) 夏小胖 (31) 安全 (55) 工具 (451) 折腾 (24) 推荐 (15) 硬件 (61) 网络 (246) 资源 (49)

归档

  • 2024 年 12 月
  • 2024 年 11 月
  • 2024 年 10 月
  • 2024 年 9 月
  • 2024 年 8 月
  • 2024 年 7 月
  • 2024 年 6 月
  • 2024 年 5 月
  • 2024 年 4 月
  • 2024 年 3 月
  • 2024 年 2 月
  • 2024 年 1 月
  • 2023 年 12 月
  • 2023 年 11 月
  • 2023 年 10 月
  • 2023 年 9 月
  • 2023 年 8 月
  • 2023 年 7 月
  • 2023 年 6 月
  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2023 年 1 月
  • 2022 年 12 月
  • 2022 年 11 月
  • 2022 年 10 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2022 年 7 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 4 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 12 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 9 月
  • 2021 年 8 月
  • 2021 年 7 月
  • 2021 年 6 月
  • 2021 年 5 月
  • 2021 年 4 月
  • 2021 年 3 月
  • 2021 年 2 月
  • 2021 年 1 月
  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2020 年 8 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 4 月
  • 2019 年 3 月
  • 2019 年 2 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 9 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 12 月
  • 2017 年 11 月
  • 2017 年 10 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 4 月
  • 2017 年 3 月
  • 2017 年 2 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 11 月
  • 2016 年 10 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 5 月
  • 2016 年 4 月
  • 2016 年 3 月
  • 2016 年 2 月
  • 2016 年 1 月
  • 2015 年 12 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 7 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2015 年 2 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 11 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 7 月
  • 2014 年 6 月
  • 2014 年 5 月
  • 2014 年 2 月