Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
2a5a6a4ee5
commit
9e39ddb26b
11 changed files with 23 additions and 20 deletions
|
@ -56,7 +56,7 @@ RUN apk upgrade --no-cache -a && \
|
||||||
echo "#APPSEC_FAILURE_ACTION=deny # see https://github.com/crowdsecurity/lua-cs-bouncer/issues/63" | tee -a /src/crowdsec-nginx-bouncer/lua-mod/config_example.conf && \
|
echo "#APPSEC_FAILURE_ACTION=deny # see https://github.com/crowdsecurity/lua-cs-bouncer/issues/63" | tee -a /src/crowdsec-nginx-bouncer/lua-mod/config_example.conf && \
|
||||||
sed -i "s|BOUNCING_ON_TYPE=all|BOUNCING_ON_TYPE=ban|g" /src/crowdsec-nginx-bouncer/lua-mod/config_example.conf
|
sed -i "s|BOUNCING_ON_TYPE=all|BOUNCING_ON_TYPE=ban|g" /src/crowdsec-nginx-bouncer/lua-mod/config_example.conf
|
||||||
|
|
||||||
FROM zoeyvid/nginx-quic:261
|
FROM zoeyvid/nginx-quic:262
|
||||||
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
|
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
|
||||||
|
|
||||||
ARG CRS_VER=v4.0.0
|
ARG CRS_VER=v4.0.0
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apidevtools/json-schema-ref-parser": "11.1.0",
|
"@apidevtools/json-schema-ref-parser": "11.1.0",
|
||||||
"ajv": "6.12.6",
|
"ajv": "6.12.6",
|
||||||
"archiver": "6.0.2",
|
"archiver": "7.0.0",
|
||||||
"batchflow": "0.4.0",
|
"batchflow": "0.4.0",
|
||||||
"bcrypt": "5.1.1",
|
"bcrypt": "5.1.1",
|
||||||
"body-parser": "1.20.2",
|
"body-parser": "1.20.2",
|
||||||
"compression": "1.7.4",
|
"compression": "1.7.4",
|
||||||
"express": "4.18.2",
|
"express": "4.18.3",
|
||||||
"express-fileupload": "1.4.3",
|
"express-fileupload": "1.4.3",
|
||||||
"gravatar": "1.8.2",
|
"gravatar": "1.8.2",
|
||||||
"jsonwebtoken": "9.0.2",
|
"jsonwebtoken": "9.0.2",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% if http2_support -%}
|
{% if http2_support == 1 or http2_support == true -%}
|
||||||
# Enable Brotli
|
# Enable Brotli
|
||||||
include conf.d/include/brotli.conf;
|
include conf.d/include/brotli.conf;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -3,17 +3,18 @@
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
{% if certificate %}
|
{% if certificate and certificate_id > 0 %}
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl;
|
||||||
{% if hsts_subdomains %}
|
|
||||||
listen 443 quic;
|
listen 443 quic;
|
||||||
listen [::]:443 quic;
|
listen [::]:443 quic;
|
||||||
|
|
||||||
|
{% if hsts_subdomains == 1 or hsts_subdomains == true %}
|
||||||
more_set_headers 'Alt-Svc: h3=":443"; ma=86400';
|
more_set_headers 'Alt-Svc: h3=":443"; ma=86400';
|
||||||
{% endif %}
|
{% else %}
|
||||||
{% endif %}
|
|
||||||
{% unless hsts_subdomains %}
|
|
||||||
more_clear_headers "Alt-Svc";
|
more_clear_headers "Alt-Svc";
|
||||||
{% endunless %}
|
http3 off;
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
server_name {{ domain_names | join: " " }};
|
server_name {{ domain_names | join: " " }};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% include "_header_comment.conf" %}
|
{% include "_header_comment.conf" %}
|
||||||
|
|
||||||
{% if enabled %}
|
{% if enabled == 1 or enabled == true %}
|
||||||
server {
|
server {
|
||||||
{% include "_listen.conf" %}
|
{% include "_listen.conf" %}
|
||||||
{% include "_certificates.conf" %}
|
{% include "_certificates.conf" %}
|
||||||
|
@ -11,7 +11,7 @@ server {
|
||||||
{{ advanced_config }}
|
{{ advanced_config }}
|
||||||
include conf.d/include/acme-challenge.conf;
|
include conf.d/include/acme-challenge.conf;
|
||||||
include conf.d/include/block-exploits.conf;
|
include conf.d/include/block-exploits.conf;
|
||||||
{% if use_default_location %}
|
{% if use_default_location == 1 or use_default_location == true %}
|
||||||
location / {
|
location / {
|
||||||
include conf.d/include/acme-challenge.conf;
|
include conf.d/include/acme-challenge.conf;
|
||||||
root /html/404;
|
root /html/404;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% include "_header_comment.conf" %}
|
{% include "_header_comment.conf" %}
|
||||||
|
|
||||||
{% if enabled %}
|
{% if enabled == 1 or enabled == true %}
|
||||||
server {
|
server {
|
||||||
set $forward_scheme {{ forward_scheme }};
|
set $forward_scheme {{ forward_scheme }};
|
||||||
set $server "{{ forward_host }}";
|
set $server "{{ forward_host }}";
|
||||||
|
@ -33,7 +33,7 @@ server {
|
||||||
|
|
||||||
{{ advanced_config }}
|
{{ advanced_config }}
|
||||||
|
|
||||||
{% if use_default_location %}
|
{% if use_default_location == 1 or use_default_location == true %}
|
||||||
location / {
|
location / {
|
||||||
include conf.d/include/acme-challenge.conf;
|
include conf.d/include/acme-challenge.conf;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% include "_header_comment.conf" %}
|
{% include "_header_comment.conf" %}
|
||||||
|
|
||||||
{% if enabled %}
|
{% if enabled == 1 or enabled == true %}
|
||||||
server {
|
server {
|
||||||
{% include "_listen.conf" %}
|
{% include "_listen.conf" %}
|
||||||
{% include "_certificates.conf" %}
|
{% include "_certificates.conf" %}
|
||||||
|
@ -11,7 +11,7 @@ server {
|
||||||
{{ advanced_config }}
|
{{ advanced_config }}
|
||||||
include conf.d/include/acme-challenge.conf;
|
include conf.d/include/acme-challenge.conf;
|
||||||
include conf.d/include/block-exploits.conf;
|
include conf.d/include/block-exploits.conf;
|
||||||
{% if use_default_location %}
|
{% if use_default_location == 1 or use_default_location == true %}
|
||||||
location / {
|
location / {
|
||||||
include conf.d/include/acme-challenge.conf;
|
include conf.d/include/acme-challenge.conf;
|
||||||
{% if preserve_path == 1 or preserve_path == true %}
|
{% if preserve_path == 1 or preserve_path == true %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# {{ incoming_port }} TCP: {{ tcp_forwarding }} UDP: {{ udp_forwarding }}
|
# {{ incoming_port }} TCP: {{ tcp_forwarding }} UDP: {{ udp_forwarding }}
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
{% if enabled %}
|
{% if enabled == 1 or enabled == true %}
|
||||||
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
|
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
|
||||||
server {
|
server {
|
||||||
listen {{ incoming_port }};
|
listen {{ incoming_port }};
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "A beautiful interface for creating Nginx endpoints",
|
"description": "A beautiful interface for creating Nginx endpoints",
|
||||||
"main": "js/index.js",
|
"main": "js/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "7.23.9",
|
"@babel/core": "7.24.0",
|
||||||
"babel-core": "6.26.3",
|
"babel-core": "6.26.3",
|
||||||
"babel-loader": "8.3.0",
|
"babel-loader": "8.3.0",
|
||||||
"babel-preset-env": "1.7.0",
|
"babel-preset-env": "1.7.0",
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
compress
|
compress
|
||||||
sharedscripts
|
sharedscripts
|
||||||
postrotate
|
postrotate
|
||||||
nginx -s reload
|
if [ -f /usr/local/nginx/logs/nginx.pid ]; then nginx -s reload fi
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
|
|
|
@ -364,6 +364,8 @@ fi
|
||||||
if [ "$LOGROTATE" = "true" ]; then
|
if [ "$LOGROTATE" = "true" ]; then
|
||||||
apk add --no-cache logrotate
|
apk add --no-cache logrotate
|
||||||
sed -i "s|rotate [0-9]\+|rotate $LOGROTATIONS|g" /etc/logrotate
|
sed -i "s|rotate [0-9]\+|rotate $LOGROTATIONS|g" /etc/logrotate
|
||||||
|
touch /data/nginx/access.log \
|
||||||
|
/data/nginx/stream.log
|
||||||
elif [ "$FULLCLEAN" = "true" ]; then
|
elif [ "$FULLCLEAN" = "true" ]; then
|
||||||
rm -vrf /data/etc/logrotate.status \
|
rm -vrf /data/etc/logrotate.status \
|
||||||
/data/nginx/access.log \
|
/data/nginx/access.log \
|
||||||
|
|
Loading…
Reference in a new issue