From 77db8bafe74973233f1189ce7fafd92648ce1e95 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 20 Nov 2024 10:03:07 +0800 Subject: [PATCH] proxy --- docker/proxy/Dockerfile | 4 +++- docker/proxy/config/http.conf | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 docker/proxy/config/http.conf diff --git a/docker/proxy/Dockerfile b/docker/proxy/Dockerfile index 1abd8af7..e985205c 100644 --- a/docker/proxy/Dockerfile +++ b/docker/proxy/Dockerfile @@ -5,8 +5,10 @@ FROM jc21/nginx-proxy-manager:2.11.3 LABEL maintainer="Websoft9" -LABEL version="2.11.3" +LABEL version="2.11.3-rc1" +RUN mkdir /data/nginx/custom +COPY ./config/http.conf /data/nginx/custom/http.conf COPY ./config/initproxy.conf /data/nginx/default_host/initproxy.conf COPY ./init_nginx.sh /app/init_nginx.sh RUN chmod +x /app/init_nginx.sh diff --git a/docker/proxy/config/http.conf b/docker/proxy/config/http.conf new file mode 100644 index 00000000..896d547d --- /dev/null +++ b/docker/proxy/config/http.conf @@ -0,0 +1,2 @@ +limit_req_zone $binary_remote_addr zone=w9_limit_req_zone:10m rate=30r/s; +limit_conn_zone $binary_remote_addr zone=w9_limit_conn_zone:10m; \ No newline at end of file