-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvars.example
More file actions
107 lines (97 loc) · 2.86 KB
/
vars.example
File metadata and controls
107 lines (97 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Copy config to a file named vars.yaml and change to suit your own needs
################################################################################
# System #
################################################################################
os:
timezone: "Europe/London"
packages:
- brotli
- fail2ban
- git
- memcached
- mcrypt
- mysql-client
- net-tools
- locate
- sysstat
- logrotate
admin_user: walter
################################################################################
# Memcached configuration #
################################################################################
memcached_memory_limit: 256
################################################################################
# Certbot/letsencrypt #
################################################################################
ssl:
country_name: "CH"
email_address: "contact@spofibo.com"
organization_name: "Spofibo"
common_name: "spofibo.com"
certbot_cloudflare_api_token: ""
################################################################################
# PHP #
################################################################################
php:
active_version: 7.4
available_versions: ["7.4", "8.0", "8.1"]
upload_max_filesize: 64M
post_max_size: 64M
user_group: www-data
################################################################################
# Sites #
################################################################################
env: prod
db:
host: mydb.service.com
port: 3306
##
# This can be removed if, for example, you dinamically generate it inside the
# inventory file.
##
sites:
- name: alpha
url: alpha.com
restore:
from_backup: false
db:
host: localhost
port: 3306
name: wp_1_db
password: mock
username: wp_1_u
php:
version: 7.4
nginx:
block_nginx_conf: false
- name: beta
url: beta.com
restore:
from_backup: true
command: "ln -sfn /data/beta.com /var/www/beta.com",
db:
name: wp_2_db
password: mock
username: wp_2_u
php:
version: 8.0
nginx:
block_nginx_conf: false
- name: gamma
url: gamma.com
restore:
from_backup: true
command: "ln -sfn /data/gamma.com /var/www/gamma.com",
db:
name: wp_3_db
password: mock
username: wp_3_u
php:
version: 8.1
max_children: 6
max_spare_servers: 6
memory_limit: 256M
min_spare_servers: 2
start_servers: 4
nginx:
block_nginx_conf: true