Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
staging.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
staging.biuro
Commits
154756fc
Commit
154756fc
authored
Jul 22, 2019
by
Simonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update server config
parent
e0418782
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
+22
-2
.env
.env
+1
-1
db-backup.sh
docker/cron-jobs/db-backup.sh
+2
-0
db-cleanup.sh
docker/cron-jobs/db-cleanup.sh
+17
-0
nginx.conf
nginx/nginx.conf
+2
-1
No files found.
.env
View file @
154756fc
...
...
@@ -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
...
...
docker/cron-jobs/db-backup.sh
0 → 100644
View file @
154756fc
#!/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
docker/cron-jobs/db-cleanup.sh
0 → 100644
View file @
154756fc
#!/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);
"
;
nginx/nginx.conf
View file @
154756fc
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment