fix: 更新nginx配置,修改server_name为omc.http和omc.https
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name localhost;
|
server_name omc.http;
|
||||||
|
|
||||||
# 修改允许最大请求体大小为100MB
|
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
# 持久连接的超时时间默认60s
|
|
||||||
keepalive_timeout 180s;
|
keepalive_timeout 180s;
|
||||||
|
|
||||||
# access_log /var/log/nginx/host.access.log main;
|
# access_log /var/log/nginx/host.access.log main;
|
||||||
@@ -49,7 +47,7 @@ server {
|
|||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name localhost;
|
server_name omc.https;
|
||||||
|
|
||||||
client_max_body_size 100M;
|
client_max_body_size 100M;
|
||||||
keepalive_timeout 180s;
|
keepalive_timeout 180s;
|
||||||
|
|||||||
Reference in New Issue
Block a user