Browse Source

* increase php default max post & upload size & set appropriate config option in default nginx config

master
parent
commit
9bc71f7b2d
  1. 4
      .env.example
  2. 1
      config/nginx/conf.d/vhosts.conf.example
  3. 4
      docker-compose.postgres.yml

4
.env.example

@ -15,8 +15,8 @@ INSTALL_PEAR_MAIL=true
PHP_OPT_SHORT_OPEN_TAG=Off PHP_OPT_SHORT_OPEN_TAG=Off
PHP_OPT_MAX_EXECUTION_TIME=600 PHP_OPT_MAX_EXECUTION_TIME=600
PHP_OPT_MEMORY_LIMIT=500M PHP_OPT_MEMORY_LIMIT=500M
PHP_OPT_POST_MAX_SIZE=48M
PHP_OPT_UPLOAD_MAX_FILESIZE=16M
PHP_OPT_POST_MAX_SIZE=300M
PHP_OPT_UPLOAD_MAX_FILESIZE=200M
### MINIO S3 ############################################# ### MINIO S3 #############################################
MINIO_ACCESS_KEY=s3.local MINIO_ACCESS_KEY=s3.local

1
config/nginx/conf.d/vhosts.conf.example

@ -27,6 +27,7 @@ server {
#@see https://vcs.wpstudio.ru/wpstudio/nginx-examples #@see https://vcs.wpstudio.ru/wpstudio/nginx-examples
include includes.d/octobercms.conf; include includes.d/octobercms.conf;
include includes.d/staticfiles.conf; include includes.d/staticfiles.conf;
client_max_body_size 300M;
location ~ ^/index.php { location ~ ^/index.php {
fastcgi_pass php74; fastcgi_pass php74;
include fastcgi_params; include fastcgi_params;

4
docker-compose.postgres.yml

@ -9,11 +9,13 @@ services:
volumes: volumes:
- databasepg:/var/lib/postgresql/data - databasepg:/var/lib/postgresql/data
- ./hostfiles:/hostfiles - ./hostfiles:/hostfiles
ports:
- "5432:5432"
adminer: adminer:
image: adminer image: adminer
restart: always restart: always
ports: ports:
- 8080:8080
- 8081:8080
pgadmin: pgadmin:
image: dpage/pgadmin4 image: dpage/pgadmin4
restart: always restart: always

Loading…
Cancel
Save