Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2983477b7a | |||
| 105fb9f9cf | |||
| 7df1a4796f | |||
| 694480f2ae | |||
| e8d70fcef1 | |||
| 9501cca4cf |
+2
-2
@@ -19,7 +19,7 @@
|
|||||||
# 软件包本地服务器: http://pkgs.colovu.com/dist
|
# 软件包本地服务器: http://pkgs.colovu.com/dist
|
||||||
|
|
||||||
ARG APP_NAME=nginx
|
ARG APP_NAME=nginx
|
||||||
ARG APP_VER=1.28.1
|
ARG APP_VER=1.29.4
|
||||||
ARG REGISTRY_URL="swr.cn-north-4.myhuaweicloud.com/colovu/"
|
ARG REGISTRY_URL="swr.cn-north-4.myhuaweicloud.com/colovu/"
|
||||||
ARG APT_SOURCE=aliyun
|
ARG APT_SOURCE=aliyun
|
||||||
ARG LOCAL_URL=""
|
ARG LOCAL_URL=""
|
||||||
@@ -46,7 +46,7 @@ RUN /usr/local/sbin/install_pkg libperl-dev \
|
|||||||
libxml2 libxml2-dev \
|
libxml2 libxml2-dev \
|
||||||
geoip-bin geoip-database libgeoip-dev
|
geoip-bin geoip-database libgeoip-dev
|
||||||
|
|
||||||
# 下载并解压软件包 nginx: https://nginx.org/download/nginx-1.28.1.tar.gz
|
# 下载并解压软件包 nginx: https://nginx.org/download/nginx-1.29.4.tar.gz
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
appName="${APP_NAME}-${APP_VER}.tar.gz"; \
|
appName="${APP_NAME}-${APP_VER}.tar.gz"; \
|
||||||
[ -n ${LOCAL_URL} ] && localURL=${LOCAL_URL}/${APP_NAME}; \
|
[ -n ${LOCAL_URL} ] && localURL=${LOCAL_URL}/${APP_NAME}; \
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
**版本信息:**
|
**版本信息:**
|
||||||
|
|
||||||
|
- 1.29、latest
|
||||||
- 1.28
|
- 1.28
|
||||||
|
|
||||||
**镜像信息:**
|
**镜像信息:**
|
||||||
@@ -157,7 +158,7 @@ APP_CFG_yarn__log___aggregation___enable=true
|
|||||||
|
|
||||||
## 更新记录
|
## 更新记录
|
||||||
|
|
||||||
- 2026/1/21: 更新版本为 v1.28.1
|
- 2026/1/21: 更新版本为 v1.29.3
|
||||||
- 2023/8/3: 更新为 Nginx 1.24.0
|
- 2023/8/3: 更新为 Nginx 1.24.0
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|||||||
@@ -0,0 +1,132 @@
|
|||||||
|
1.28.1
|
||||||
|
1.29.4
|
||||||
|
|
||||||
|
|
||||||
|
Dynamic Modules
|
||||||
|
Main nginx package is built with all modules that do not require additional libraries to avoid extra dependencies. Since version 1.9.11, nginx supports dynamic modules and the following modules are built as dynamic and shipped as separate packages:
|
||||||
|
nginx-module-geoip
|
||||||
|
nginx-module-image-filter
|
||||||
|
nginx-module-njs
|
||||||
|
nginx-module-perl
|
||||||
|
nginx-module-xslt
|
||||||
|
Additionally, since version 1.25.3, the following module is shipped as a separate package:
|
||||||
|
nginx-module-otel
|
||||||
|
Additionally, since version 1.29.1, the following module is shipped as a separate package:
|
||||||
|
nginx-module-acme
|
||||||
|
|
||||||
|
原始 nginx.conf:
|
||||||
|
|
||||||
|
#user nobody;
|
||||||
|
worker_processes 1;
|
||||||
|
|
||||||
|
#error_log logs/error.log;
|
||||||
|
#error_log logs/error.log notice;
|
||||||
|
#error_log logs/error.log info;
|
||||||
|
|
||||||
|
#pid logs/nginx.pid;
|
||||||
|
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
http {
|
||||||
|
include mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
|
# '$status $body_bytes_sent "$http_referer" '
|
||||||
|
# '"$http_user_agent" "$http_x_forwarded_for"';
|
||||||
|
|
||||||
|
#access_log logs/access.log main;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
#tcp_nopush on;
|
||||||
|
|
||||||
|
#keepalive_timeout 0;
|
||||||
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
#gzip on;
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
#access_log logs/host.access.log main;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
#error_page 404 /404.html;
|
||||||
|
|
||||||
|
# redirect server error pages to the static page /50x.html
|
||||||
|
#
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root html;
|
||||||
|
}
|
||||||
|
|
||||||
|
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||||
|
#
|
||||||
|
#location ~ \.php$ {
|
||||||
|
# proxy_pass http://127.0.0.1;
|
||||||
|
#}
|
||||||
|
|
||||||
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||||||
|
#
|
||||||
|
#location ~ \.php$ {
|
||||||
|
# root html;
|
||||||
|
# fastcgi_pass 127.0.0.1:9000;
|
||||||
|
# fastcgi_index index.php;
|
||||||
|
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
||||||
|
# include fastcgi_params;
|
||||||
|
#}
|
||||||
|
|
||||||
|
# deny access to .htaccess files, if Apache's document root
|
||||||
|
# concurs with nginx's one
|
||||||
|
#
|
||||||
|
#location ~ /\.ht {
|
||||||
|
# deny all;
|
||||||
|
#}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# another virtual host using mix of IP-, name-, and port-based configuration
|
||||||
|
#
|
||||||
|
#server {
|
||||||
|
# listen 8000;
|
||||||
|
# listen somename:8080;
|
||||||
|
# server_name somename alias another.alias;
|
||||||
|
|
||||||
|
# location / {
|
||||||
|
# root html;
|
||||||
|
# index index.html index.htm;
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
|
||||||
|
|
||||||
|
# HTTPS server
|
||||||
|
#
|
||||||
|
#server {
|
||||||
|
# listen 443 ssl;
|
||||||
|
# server_name localhost;
|
||||||
|
|
||||||
|
# ssl_certificate cert.pem;
|
||||||
|
# ssl_certificate_key cert.key;
|
||||||
|
|
||||||
|
# ssl_session_cache shared:SSL:1m;
|
||||||
|
# ssl_session_timeout 5m;
|
||||||
|
|
||||||
|
# ssl_ciphers HIGH:!aNULL:!MD5;
|
||||||
|
# ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
|
# location / {
|
||||||
|
# root html;
|
||||||
|
# index index.html index.htm;
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -121,7 +121,7 @@ http {
|
|||||||
ssl_session_cache shared:SSL:10m;
|
ssl_session_cache shared:SSL:10m;
|
||||||
ssl_session_timeout 5m;
|
ssl_session_timeout 5m;
|
||||||
|
|
||||||
# 启用或禁用应答信息的压缩传输
|
# 启用或禁用应答信息的压缩传输
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_min_length 1024;
|
gzip_min_length 1024;
|
||||||
|
|||||||
Reference in New Issue
Block a user