Skip to content

Commit

Permalink
Merge pull request #142 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 1.23.4
  • Loading branch information
andyone authored Mar 31, 2023
2 parents 0c574ee + f0ddb4e commit 3559915
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 129 deletions.
3 changes: 0 additions & 3 deletions .bibop/webkaos.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,6 @@ command "service {service_name} check" "Broken config check"
command "service {service_name} reload" "Broken config reload"
!exit 0

command "service {service_name} restart" "Restart with broken config"
!exit 0

command "-" "Restore working configuration"
copy webkaos.conf {config}

Expand Down
2 changes: 1 addition & 1 deletion .docker/centos7-unprivileged.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.title="WEBKAOS (Unprivileged)" \
org.opencontainers.image.url="https://kaos.sh/webkaos" \
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos"

ARG WEBKAOS_VER=1.23.3
ARG WEBKAOS_VER=1.23.4
ARG BROTLI_VER=0.1.5
ARG REPOSITORY=kaos-release

Expand Down
2 changes: 1 addition & 1 deletion .docker/centos7.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.title="WEBKAOS" \
org.opencontainers.image.url="https://kaos.sh/webkaos" \
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos"

ARG WEBKAOS_VER=1.23.3
ARG WEBKAOS_VER=1.23.4
ARG BROTLI_VER=0.1.5
ARG REPOSITORY=kaos-release

Expand Down
2 changes: 1 addition & 1 deletion .docker/ol7-unprivileged.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.title="WEBKAOS (Unprivileged)" \
org.opencontainers.image.url="https://kaos.sh/webkaos" \
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos"

ARG WEBKAOS_VER=1.23.3
ARG WEBKAOS_VER=1.23.4
ARG BROTLI_VER=0.1.5
ARG REPOSITORY=kaos-release

Expand Down
2 changes: 1 addition & 1 deletion .docker/ol7.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.title="WEBKAOS" \
org.opencontainers.image.url="https://kaos.sh/webkaos" \
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos"

ARG WEBKAOS_VER=1.23.3
ARG WEBKAOS_VER=1.23.4
ARG BROTLI_VER=0.1.5
ARG REPOSITORY=kaos-release

Expand Down
2 changes: 1 addition & 1 deletion .docker/ol8-unprivileged.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.title="WEBKAOS (Unprivileged)" \
org.opencontainers.image.url="https://kaos.sh/webkaos" \
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos"

ARG WEBKAOS_VER=1.23.3
ARG WEBKAOS_VER=1.23.4
ARG BROTLI_VER=0.1.5
ARG REPOSITORY=kaos-release

Expand Down
2 changes: 1 addition & 1 deletion .docker/ol8.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.title="WEBKAOS" \
org.opencontainers.image.url="https://kaos.sh/webkaos" \
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos"

ARG WEBKAOS_VER=1.23.3
ARG WEBKAOS_VER=1.23.4
ARG BROTLI_VER=0.1.5
ARG REPOSITORY=kaos-release

Expand Down
2 changes: 1 addition & 1 deletion .docker/ol9-unprivileged.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.title="WEBKAOS (Unprivileged)" \
org.opencontainers.image.url="https://kaos.sh/webkaos" \
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos"

ARG WEBKAOS_VER=1.23.3
ARG WEBKAOS_VER=1.23.4
ARG BROTLI_VER=0.1.5
ARG REPOSITORY=kaos-release

Expand Down
2 changes: 1 addition & 1 deletion .docker/ol9.docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LABEL org.opencontainers.image.title="WEBKAOS" \
org.opencontainers.image.url="https://kaos.sh/webkaos" \
org.opencontainers.image.source="https://github.com/essentialkaos/webkaos"

ARG WEBKAOS_VER=1.23.3
ARG WEBKAOS_VER=1.23.4
ARG BROTLI_VER=0.1.5
ARG REPOSITORY=kaos-release

Expand Down
6 changes: 3 additions & 3 deletions .docker/version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ checkDockerfiles() {
fi
done

if [[ -z "$has_errors" ]] ; then
show "\nEverything looks fine, excellent!" $BOLD
else
if [[ -n "$has_errors" ]] ; then
show "\nFound problems with versions!" $RED
return 1
fi

show "\nEverything looks fine, excellent!" $BOLD
return 0
}

Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,22 @@ jobs:
./entrypoint_test.sh
popd
DockerVersionCheck:
name: Docker versions check
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Run entrypoint unit tests
run: .docker/version_check.sh

DockerBuild:
name: Docker Build Check
runs-on: ubuntu-latest

needs: [Hadolint, Shellcheck, DockerEntrypointUnit]
needs: [Hadolint, Shellcheck, DockerEntrypointUnit, DockerVersionCheck]

env:
REGISTRY: ghcr.io
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
- name: Build and push Docker images (Docker)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
context: .
Expand All @@ -160,7 +160,7 @@ jobs:

- name: Build and push Docker images (GHCR)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
context: .
Expand Down
20 changes: 10 additions & 10 deletions SOURCES/boringssl.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff -urN nginx-1.23.1-orig/src/event/ngx_event_openssl.c nginx-1.23.1-boring/src/event/ngx_event_openssl.c
--- nginx-1.23.1-orig/src/event/ngx_event_openssl.c 2022-07-19 17:05:27.000000000 +0300
+++ nginx-1.23.1-boring/src/event/ngx_event_openssl.c 2022-08-02 15:19:58.000000000 +0300
@@ -3352,7 +3352,9 @@
#ifdef SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM
|| n == SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM /* 118 */
diff -urN nginx-1.23.4-orig/src/event/ngx_event_openssl.c nginx-1.23.4/src/event/ngx_event_openssl.c
--- nginx-1.23.4-orig/src/event/ngx_event_openssl.c 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/event/ngx_event_openssl.c 2023-03-29 13:53:09.000000000 +0300
@@ -3416,7 +3416,9 @@
#ifdef SSL_R_BAD_KEY_UPDATE
|| n == SSL_R_BAD_KEY_UPDATE /* 122 */
#endif
+#ifdef SSL_R_BLOCK_CIPHER_PAD_IS_WRONG
|| n == SSL_R_BLOCK_CIPHER_PAD_IS_WRONG /* 129 */
+#endif
|| n == SSL_R_DIGEST_CHECK_FAILED /* 149 */
|| n == SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST /* 151 */
|| n == SSL_R_EXCESSIVE_MESSAGE_SIZE /* 152 */
@@ -3362,7 +3364,9 @@
|| n == SSL_R_CCS_RECEIVED_EARLY /* 133 */
#ifdef SSL_R_DECODE_ERROR
|| n == SSL_R_DECODE_ERROR /* 137 */
@@ -3444,7 +3446,9 @@
#ifdef SSL_R_NO_CIPHERS_PASSED
|| n == SSL_R_NO_CIPHERS_PASSED /* 182 */
#endif
Expand Down
19 changes: 0 additions & 19 deletions SOURCES/lua-nginx-module-compat.patch

This file was deleted.

66 changes: 33 additions & 33 deletions SOURCES/webkaos.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff -urN nginx-1.23.3-orig/auto/lib/openssl/make nginx-1.23.3/auto/lib/openssl/make
--- nginx-1.23.3-orig/auto/lib/openssl/make 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/auto/lib/openssl/make 2023-01-16 13:05:59.968753081 +0300
@@ -45,18 +45,18 @@
diff -urN nginx-1.23.4-orig/auto/lib/openssl/make nginx-1.23.4/auto/lib/openssl/make
--- nginx-1.23.4-orig/auto/lib/openssl/make 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/auto/lib/openssl/make 2023-03-29 13:08:48.000000000 +0300
@@ -58,18 +58,18 @@
/*) ngx_prefix="$OPENSSL/.openssl" ;;
*) ngx_prefix="$PWD/$OPENSSL/.openssl" ;;
esac
-
+ if [ ! -d "$ngx_prefix" ]; then
+ if [ ! -d "$ngx_prefix" ]; then
cat << END >> $NGX_MAKEFILE

$OPENSSL/.openssl/include/openssl/ssl.h: $NGX_MAKEFILE
Expand All @@ -15,18 +15,18 @@ diff -urN nginx-1.23.3-orig/auto/lib/openssl/make nginx-1.23.3/auto/lib/openssl/
&& ./config --prefix=$ngx_prefix no-shared no-threads $OPENSSL_OPT \\
- && \$(MAKE) \\
- && \$(MAKE) install_sw LIBDIR=lib
+ && \$(MAKE) -j1\\
+ && \$(MAKE) -j1 \\
+ && \$(MAKE) -j1 install_sw LIBDIR=lib

END
-
+ fi
+ fi
;;

esac
diff -urN nginx-1.23.3-orig/src/core/nginx.c nginx-1.23.3/src/core/nginx.c
--- nginx-1.23.3-orig/src/core/nginx.c 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/src/core/nginx.c 2023-01-16 13:05:59.974753059 +0300
diff -urN nginx-1.23.4-orig/src/core/nginx.c nginx-1.23.4/src/core/nginx.c
--- nginx-1.23.4-orig/src/core/nginx.c 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/core/nginx.c 2023-03-29 12:59:12.184527558 +0300
@@ -390,13 +390,13 @@
static void
ngx_show_version_info(void)
Expand All @@ -45,13 +45,13 @@ diff -urN nginx-1.23.3-orig/src/core/nginx.c nginx-1.23.3/src/core/nginx.c
"Options:" NGX_LINEFEED
" -?,-h : this help" NGX_LINEFEED
" -v : show version and exit" NGX_LINEFEED
diff -urN nginx-1.23.3-orig/src/core/nginx.h nginx-1.23.3/src/core/nginx.h
--- nginx-1.23.3-orig/src/core/nginx.h 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/src/core/nginx.h 2023-01-16 13:06:36.000000000 +0300
diff -urN nginx-1.23.4-orig/src/core/nginx.h nginx-1.23.4/src/core/nginx.h
--- nginx-1.23.4-orig/src/core/nginx.h 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/core/nginx.h 2023-03-29 13:09:16.000000000 +0300
@@ -11,7 +11,7 @@

#define nginx_version 1023003
#define NGINX_VERSION "1.23.3"
#define nginx_version 1023004
#define NGINX_VERSION "1.23.4"
-#define NGINX_VER "nginx/" NGINX_VERSION
+#define NGINX_VER "webkaos/" NGINX_VERSION

Expand All @@ -66,9 +66,9 @@ diff -urN nginx-1.23.3-orig/src/core/nginx.h nginx-1.23.3/src/core/nginx.h
#define NGX_OLDPID_EXT ".oldbin"


diff -urN nginx-1.23.3-orig/src/core/ngx_log.c nginx-1.23.3/src/core/ngx_log.c
--- nginx-1.23.3-orig/src/core/ngx_log.c 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/src/core/ngx_log.c 2023-01-16 13:05:59.985753018 +0300
diff -urN nginx-1.23.4-orig/src/core/ngx_log.c nginx-1.23.4/src/core/ngx_log.c
--- nginx-1.23.4-orig/src/core/ngx_log.c 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/core/ngx_log.c 2023-03-29 12:59:12.195527524 +0300
@@ -202,9 +202,9 @@
return;
}
Expand Down Expand Up @@ -99,9 +99,9 @@ diff -urN nginx-1.23.3-orig/src/core/ngx_log.c nginx-1.23.3/src/core/ngx_log.c
return NGX_CONF_ERROR;
#endif

diff -urN nginx-1.23.3-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1.23.3/src/http/modules/ngx_http_autoindex_module.c
--- nginx-1.23.3-orig/src/http/modules/ngx_http_autoindex_module.c 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/src/http/modules/ngx_http_autoindex_module.c 2023-01-16 13:05:59.991752996 +0300
diff -urN nginx-1.23.4-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1.23.4/src/http/modules/ngx_http_autoindex_module.c
--- nginx-1.23.4-orig/src/http/modules/ngx_http_autoindex_module.c 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/http/modules/ngx_http_autoindex_module.c 2023-03-29 12:59:12.201527505 +0300
@@ -449,9 +449,11 @@
;

Expand Down Expand Up @@ -177,9 +177,9 @@ diff -urN nginx-1.23.3-orig/src/http/modules/ngx_http_autoindex_module.c nginx-1
tm.ngx_tm_mday,
months[tm.ngx_tm_mon - 1],
tm.ngx_tm_year,
diff -urN nginx-1.23.3-orig/src/http/ngx_http_header_filter_module.c nginx-1.23.3/src/http/ngx_http_header_filter_module.c
--- nginx-1.23.3-orig/src/http/ngx_http_header_filter_module.c 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/src/http/ngx_http_header_filter_module.c 2023-01-16 13:05:59.998752970 +0300
diff -urN nginx-1.23.4-orig/src/http/ngx_http_header_filter_module.c nginx-1.23.4/src/http/ngx_http_header_filter_module.c
--- nginx-1.23.4-orig/src/http/ngx_http_header_filter_module.c 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/http/ngx_http_header_filter_module.c 2023-03-29 12:59:12.207527487 +0300
@@ -46,7 +46,7 @@
};

Expand Down Expand Up @@ -230,9 +230,9 @@ diff -urN nginx-1.23.3-orig/src/http/ngx_http_header_filter_module.c nginx-1.23.
#define NGX_HTTP_OFF_5XX (NGX_HTTP_LAST_4XX - 400 + NGX_HTTP_OFF_4XX)

ngx_string("500 Internal Server Error"),
diff -urN nginx-1.23.3-orig/src/http/ngx_http_special_response.c nginx-1.23.3/src/http/ngx_http_special_response.c
--- nginx-1.23.3-orig/src/http/ngx_http_special_response.c 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/src/http/ngx_http_special_response.c 2023-01-16 13:06:00.004752948 +0300
diff -urN nginx-1.23.4-orig/src/http/ngx_http_special_response.c nginx-1.23.4/src/http/ngx_http_special_response.c
--- nginx-1.23.4-orig/src/http/ngx_http_special_response.c 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/http/ngx_http_special_response.c 2023-03-29 12:59:12.214527465 +0300
@@ -19,21 +19,21 @@


Expand Down Expand Up @@ -705,9 +705,9 @@ diff -urN nginx-1.23.3-orig/src/http/ngx_http_special_response.c nginx-1.23.3/sr
#define NGX_HTTP_OFF_5XX (NGX_HTTP_LAST_4XX - 400 + NGX_HTTP_OFF_4XX)

ngx_string(ngx_http_error_494_page), /* 494, request header too large */
diff -urN nginx-1.23.3-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.23.3/src/http/v2/ngx_http_v2_filter_module.c
--- nginx-1.23.3-orig/src/http/v2/ngx_http_v2_filter_module.c 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/src/http/v2/ngx_http_v2_filter_module.c 2023-01-16 13:06:00.010752926 +0300
diff -urN nginx-1.23.4-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.23.4/src/http/v2/ngx_http_v2_filter_module.c
--- nginx-1.23.4-orig/src/http/v2/ngx_http_v2_filter_module.c 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/http/v2/ngx_http_v2_filter_module.c 2023-03-29 12:59:12.221527443 +0300
@@ -148,7 +148,7 @@
ngx_http_core_srv_conf_t *cscf;
u_char addr[NGX_SOCKADDR_STRLEN];
Expand All @@ -726,9 +726,9 @@ diff -urN nginx-1.23.3-orig/src/http/v2/ngx_http_v2_filter_module.c nginx-1.23.3
}

*pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_SERVER_INDEX);
diff -urN nginx-1.23.3-orig/src/os/unix/ngx_setproctitle.c nginx-1.23.3/src/os/unix/ngx_setproctitle.c
--- nginx-1.23.3-orig/src/os/unix/ngx_setproctitle.c 2022-12-13 18:53:53.000000000 +0300
+++ nginx-1.23.3/src/os/unix/ngx_setproctitle.c 2023-01-16 13:06:00.016752904 +0300
diff -urN nginx-1.23.4-orig/src/os/unix/ngx_setproctitle.c nginx-1.23.4/src/os/unix/ngx_setproctitle.c
--- nginx-1.23.4-orig/src/os/unix/ngx_setproctitle.c 2023-03-28 18:01:54.000000000 +0300
+++ nginx-1.23.4/src/os/unix/ngx_setproctitle.c 2023-03-29 12:59:12.227527425 +0300
@@ -89,7 +89,7 @@

ngx_os_argv[1] = NULL;
Expand Down
Loading

0 comments on commit 3559915

Please sign in to comment.