mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Raise php max file upload size for STB wordpress
This commit is contained in:
parent
bfc85a9fab
commit
d36521e6f9
3 changed files with 11 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ services:
|
||||||
image: wordpress:4.9.4-php7.1-apache
|
image: wordpress:4.9.4-php7.1-apache
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/stb:/var/www/html
|
- /var/lib/stb:/var/www/html
|
||||||
|
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
|
||||||
labels:
|
labels:
|
||||||
- "traefik.backend=wordpress"
|
- "traefik.backend=wordpress"
|
||||||
- "traefik.docker.network=web"
|
- "traefik.docker.network=web"
|
||||||
|
|
|
||||||
6
roles/stb-wordpress-docker/files/uploads.ini
Normal file
6
roles/stb-wordpress-docker/files/uploads.ini
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
file_uploads = On
|
||||||
|
memory_limit = 64M
|
||||||
|
upload_max_filesize = 64M
|
||||||
|
post_max_size = 64M
|
||||||
|
max_execution_time = 600
|
||||||
|
|
||||||
|
|
@ -7,6 +7,10 @@
|
||||||
copy:
|
copy:
|
||||||
src: docker-compose.yml
|
src: docker-compose.yml
|
||||||
dest: "{{docker_compose_files_folder}}/stb/"
|
dest: "{{docker_compose_files_folder}}/stb/"
|
||||||
|
- name: Copy php upload config
|
||||||
|
copy:
|
||||||
|
src: uploads.ini
|
||||||
|
dest: "{{docker_compose_files_folder}}/stb/"
|
||||||
- name: Create .env
|
- name: Create .env
|
||||||
template:
|
template:
|
||||||
src: .env
|
src: .env
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue