Skip to content

Commit 4f405cf

Browse files
authored
v.7.1.0 (#165)
Major updates * Adding AI bots block by default * Adding nginx-clear-logs executable and weekly periodic task Minor updates * Updating Nginx build Build updates * Updating GitHub workflow actions Documentation updates * Updating copyright year to 2024
1 parent 8e1af37 commit 4f405cf

File tree

14 files changed

+58
-28
lines changed

14 files changed

+58
-28
lines changed

.github/workflows/auto-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
-
1212
name: Checkout Branch ${{ github.ref_name }}
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
-
1515
name: Create Pull Request
1616
uses: bfren/pull-request@v2

.github/workflows/dev.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
build:
1717
runs-on: ubuntu-latest
1818
steps:
1919
-
2020
name: Checkout code
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
-
2323
name: Get repository name
2424
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -31,20 +31,20 @@ jobs:
3131
id: version
3232
-
3333
name: Set up QEMU
34-
uses: docker/setup-qemu-action@v2
34+
uses: docker/setup-qemu-action@v3
3535
-
3636
name: Set up Docker Buildx
37-
uses: docker/setup-buildx-action@v2
37+
uses: docker/setup-buildx-action@v3
3838
-
3939
name: Login to DockerHub
40-
uses: docker/login-action@v2
40+
uses: docker/login-action@v3
4141
with:
4242
username: ${{ secrets.DOCKERHUB_USERNAME }}
4343
password: ${{ secrets.DOCKERHUB_TOKEN }}
4444
-
4545
name: Build and push
4646
id: docker_build
47-
uses: docker/build-push-action@v4
47+
uses: docker/build-push-action@v6
4848
with:
4949
build-args: |
5050
BF_IMAGE=${{ env.REPOSITORY_NAME }}

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
-
1313
name: Checkout code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
-
1616
name: Get repository name
1717
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
@@ -36,20 +36,20 @@ jobs:
3636
id: version
3737
-
3838
name: Set up QEMU
39-
uses: docker/setup-qemu-action@v2
39+
uses: docker/setup-qemu-action@v3
4040
-
4141
name: Set up Docker Buildx
42-
uses: docker/setup-buildx-action@v2
42+
uses: docker/setup-buildx-action@v3
4343
-
4444
name: Login to DockerHub
45-
uses: docker/login-action@v2
45+
uses: docker/login-action@v3
4646
with:
4747
username: ${{ secrets.DOCKERHUB_USERNAME }}
4848
password: ${{ secrets.DOCKERHUB_TOKEN }}
4949
-
5050
name: Build and push
5151
id: docker_build
52-
uses: docker/build-push-action@v4
52+
uses: docker/build-push-action@v6
5353
with:
5454
build-args: |
5555
BF_IMAGE=${{ env.REPOSITORY_NAME }}

.github/workflows/update-readme.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
shell: bash
1616
-
1717
name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
-
2020
name: Login to DockerHub
21-
uses: docker/login-action@v2
21+
uses: docker/login-action@v3
2222
with:
2323
username: ${{ secrets.DOCKERHUB_USERNAME }}
2424
password: ${{ secrets.DOCKERHUB_TOKEN }}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-2023 bfren
3+
Copyright (c) 2020-2024 bfren
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ The image contains a handful of useful Nginx configuration 'helper' files, which
8383
8484
## Copyright
8585

86-
> Copyright (c) 2020-2023 [bfren](https://bfren.dev) (unless otherwise stated)
86+
> Copyright (c) 2020-2024 [bfren](https://bfren.dev) (unless otherwise stated)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.5
1+
7.1.0

VERSION_MINOR

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0
1+
7.1

overlay/etc/bf/templates/nginx-proxy.conf.esh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Use environment variable PROXY_DOMAIN to change this file.
66
#
7-
# Copyright (c) 2021-2023 bfren
7+
# Copyright (c) 2021-2024 bfren
88
#======================================================================================================================
99

1010
#======================================================================================================================
@@ -39,19 +39,19 @@ server {
3939
return 301 <%= "https://${DOMAIN_NAME}" %>$request_uri;
4040
}
4141

42-
# because he was a legend
43-
include helpers/nginx-discworld.conf;
44-
4542
# include secure headers
4643
include helpers/proxy-secure-headers.conf;
4744

48-
# include custom configuration
49-
include <%= "${CUSTOM_CONF}/*.conf" %>;
50-
5145
# include standard helpers
5246
include helpers/nginx-ignore-favicon.conf;
5347
include helpers/nginx-static-files.conf;
5448

49+
# include custom configuration
50+
include <%= "${CUSTOM_CONF}/*.conf" %>;
51+
52+
# because he was a legend
53+
include helpers/nginx-discworld.conf;
54+
5555
# serve pages in <%= "${NGINX_PUBLIC}" %> (map volume to override default pages)
5656
root <%= "${NGINX_PUBLIC}" %>;
5757

overlay/etc/bf/templates/nginx-site.conf.esh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# "custom": true
1616
# This will cause this file to be regenerated next time the container is started.
1717
#
18-
# Copyright (c) 2021-2023 bfren
18+
# Copyright (c) 2021-2024 bfren
1919
#======================================================================================================================
2020
<% else -%>
2121
#======================================================================================================================
@@ -29,7 +29,7 @@
2929
# "custom": true
3030
# This will stop this file being generated next time the container is started.
3131
#
32-
# Copyright (c) 2021-2023 bfren
32+
# Copyright (c) 2021-2024 bfren
3333
#======================================================================================================================
3434
<% fi %>
3535
#======================================================================================================================
@@ -96,6 +96,9 @@ server {
9696
include helpers/proxy-params.conf;
9797
include helpers/proxy-secure-headers.conf;
9898

99+
# block AI bots
100+
include helpers/nginx-block-ai-bots.conf;
101+
99102
<% if [ "${PROXY_ENABLE_NAXSI-}" = "1" ] ; then -%>
100103
# enable NAXSI web application firewall with custom rules
101104
include helpers/naxsi.conf;

0 commit comments

Comments
 (0)