优化nginx配置

This commit is contained in:
05412 2024-08-15 13:44:04 +08:00
parent d1d28d22a8
commit 7a89b28f3a
2 changed files with 3 additions and 2 deletions

View File

@ -2,4 +2,4 @@ FROM alpine:latest
RUN sed -i 's@dl-cdn.alpinelinux.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apk/repositories \ RUN sed -i 's@dl-cdn.alpinelinux.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apk/repositories \
&& apk add --no-cache nginx && apk add --no-cache nginx
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx"]

View File

@ -1,6 +1,7 @@
#user nobody; #user nobody;
worker_processes 4; worker_processes auto;
daemon off;
#error_log logs/error.log; #error_log logs/error.log;
#error_log logs/error.log notice; #error_log logs/error.log notice;