Skip to content

Commit 18d9233

Browse files
authored
Merge pull request #63 from linuxserver/updates
rebase to alpine 3.12, bump php uploads, fix APP_URL
2 parents 8e1aeb9 + 8af8464 commit 18d9233

File tree

6 files changed

+10
-4
lines changed

6 files changed

+10
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lsiobase/nginx:3.11
1+
FROM lsiobase/nginx:3.12
22

33
# set version label
44
ARG BUILD_DATE

Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lsiobase/nginx:arm64v8-3.11
1+
FROM lsiobase/nginx:arm64v8-3.12
22

33
# set version label
44
ARG BUILD_DATE

Dockerfile.armhf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lsiobase/nginx:arm32v7-3.11
1+
FROM lsiobase/nginx:arm32v7-3.12
22

33
# set version label
44
ARG BUILD_DATE

README.md

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

266266
## Versions
267267

268+
* **17.09.20:** - Rebase to alpine 3.12. Fix APP_URL setting. Bump php post max and upload max filesizes to 100MB by default.
268269
* **19.12.19:** - Rebasing to alpine 3.11.
269270
* **26.07.19:** - Use old version of tidyhtml pending upstream fixes.
270271
* **28.06.19:** - Rebasing to alpine 3.10.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ app_setup_block: |
100100
101101
# changelog
102102
changelogs:
103+
- { date: "17.09.20:", desc: "Rebase to alpine 3.12. Fix APP_URL setting. Bump php post max and upload max filesizes to 100MB by default." }
103104
- { date: "19.12.19:", desc: "Rebasing to alpine 3.11." }
104105
- { date: "26.07.19:", desc: "Use old version of tidyhtml pending upstream fixes." }
105106
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ if [ "${DB_USER}" ];
5858
fi
5959

6060
# set appurl if detected
61-
[[ "${APP_URL}" ]] && sed -i "s,#\sAPP_URL.*,APP_URL=${APP_URL},g" /config/www/.env
61+
[ -n "${APP_URL}" ] && sed -r "s,([#\s]*)?APP_URL=.*,APP_URL=${APP_URL},g" -i /config/www/.env
62+
63+
## Bump php upload max filesize and post max size to 100MB by default
64+
grep -qxF 'upload_max_filesize' /config/php/php-local.ini || echo 'upload_max_filesize = 100MB' >> /config/php/php-local.ini
65+
grep -qxF 'post_max_size' /config/php/php-local.ini || echo 'post_max_size = 100MB' >> /config/php/php-local.ini
6266

6367
# check for the mysql endpoint for 30 seconds
6468
END=$((SECONDS+30))

0 commit comments

Comments
 (0)