Commit 154756fc authored by Simonas's avatar Simonas

update server config

parent e0418782
......@@ -2,7 +2,7 @@ PROJECT=biuro-staging
IMAGE_NGINX=fholzer/nginx-brotli
IMAGE_MYSQL=mariadb:10.3
IMAGE_WORDPRESS=biuro/web:1.5.1
IMAGE_WORDPRESS=biuro/web:1.6.12
IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3
DB_NAME=staging_biuro
......
#!/bin/sh
/usr/bin/docker exec biuro-staging-mysql mysqldump -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 staging_biuro > /home/ubuntu/biuro-staging/docker/backup/data-$(date +%Y-%m-%d-%H%M%S).sql
#!/bin/sh
/usr/bin/docker exec biuro-staging-mysql mysql -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 -e "
use staging_biuro;
DELETE FROM wp_biuro_employees WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_2_biuro_employees WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_3_biuro_employees WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_biuro_employers WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_2_biuro_employers WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_3_biuro_employers WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
";
......@@ -162,7 +162,8 @@ http {
font/woff2 "*";
}
client_max_body_size 10M;
client_body_buffer_size 10M;
client_max_body_size 10M;
# Include files in the conf.d folder.
# server{} configuration files should be placed in the conf.d folder.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment