From 29d1c41973b5394cadb78a4dee7722cca67b863a Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 18 Apr 2025 14:44:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0nginx=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9server=5Fname=E4=B8=BAomc.h?= =?UTF-8?q?ttp=E5=92=8Comc.https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/usr/local/etc/omc/nginx/omc.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/linux/usr/local/etc/omc/nginx/omc.conf b/linux/usr/local/etc/omc/nginx/omc.conf index 7ced2f3..cd87691 100644 --- a/linux/usr/local/etc/omc/nginx/omc.conf +++ b/linux/usr/local/etc/omc/nginx/omc.conf @@ -1,11 +1,9 @@ server { listen 80; listen [::]:80; - server_name localhost; + server_name omc.http; - # 修改允许最大请求体大小为100MB client_max_body_size 100M; - # 持久连接的超时时间默认60s keepalive_timeout 180s; # access_log /var/log/nginx/host.access.log main; @@ -49,7 +47,7 @@ server { server { listen 443 ssl http2; listen [::]:443 ssl http2; - server_name localhost; + server_name omc.https; client_max_body_size 100M; keepalive_timeout 180s;