1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-05 03:27:57 +08:00

fix:nginx日志配置优化

This commit is contained in:
妹妹下雨回不去
2022-06-30 20:21:47 +08:00
parent 9219edb7be
commit 38bed73cba
2 changed files with 3 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ RUN mkdir -p /apps
COPY . /apps
WORKDIR /apps
## 安装依赖
RUN npm ci --registry https://registry.npmmirror.com && npm run build
RUN npm i --registry https://registry.npmmirror.com && npm run build
# 设置部署镜像
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:latest

View File

@@ -1,7 +1,7 @@
# 参考https://www.likecs.com/ask-1256888.html
user root;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
error_log /var/log/nginx/error.log error;
events {
worker_connections 1024;
}
@@ -9,14 +9,11 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile off;
access_log off;
access_log on;
keepalive_timeout 3000;
server {
listen 7000;
server_name localhost;
#charset koi8-r;
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log error;
## 静态资源代理
location / {
gzip on; #开启或关闭gzip on off