Skip to content

Commit ae3d703

Browse files
committed
add vendor folder to deny list
1 parent 03ab170 commit ae3d703

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
222222

223223
## Versions
224224

225+
* **15.04.21:** - Add `vendor` folder to deny list.
225226
* **21.02.21:** - Store search index outside of container, set absolute (default) path for `savedir`.
226227
* **23.01.21:** - Rebasing to alpine 3.13.
227228
* **28.09.20:** - Add php7-pdo_sqlite and php7-sqlite3.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ app_setup_block: |
4040
Upon first install go to `http://$IP:$PORT/install.php` once you have completed the setup, restart the container, login as admin and set "Use nice URLs" in the `admin/Configuration Settings` panel to `.htaccess` and tick `Use slash as namespace separator in URLs` to enable [nice URLs](https://www.dokuwiki.org/rewrite) you will find the webui at `http://$IP:$PORT/`, for more info see [{{ project_name|capitalize }}]({{ project_url }})
4141
# changelog
4242
changelogs:
43+
- { date: "15.04.21:", desc: "Add `vendor` folder to deny list." }
4344
- { date: "21.02.21:", desc: "Store search index outside of container, set absolute (default) path for `savedir`." }
4445
- { date: "23.01.21:", desc: "Rebasing to alpine 3.13." }
4546
- { date: "28.09.20:", desc: "Add php7-pdo_sqlite and php7-sqlite3." }

root/defaults/default

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ server {
1515
root /app/dokuwiki;
1616
index doku.php;
1717

18-
#Remember to comment the below out when you're installing, and uncomment it when done.
19-
#location ~ /(conf/|bin/|inc/|install.php) { deny all; }
18+
location ~ /(conf/|bin/|inc/|vendor/) { deny all; }
2019

2120
#Support for X-Accel-Redirect
2221
location ~ ^/data/ { internal ; }

root/etc/cont-init.d/50-config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ else
7777
echo "Go to http://IP-ADDRESS:PORT/install.php to configure your install then restart your container when finished to remove install.php"
7878
fi
7979

80+
## Backwards compatibility 2021/04/15
81+
sed -i 's%location ~ /(conf/|bin/|inc/|install.php) { deny all; }%location ~ /(conf/|bin/|inc/|vendor/) { deny all; }%' /config/nginx/site-confs/default
82+
8083
# permissions
8184
echo "[cont-init.d] Setting permissions this may take some time"
8285
chown -R abc:abc \

0 commit comments

Comments
 (0)