-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.config.yml
347 lines (289 loc) · 6.88 KB
/
default.config.yml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
---
############
# ansible #
############
ansible_become_flags: "-H -S -n --preserve-env=HOMEBREW_CACHE"
############
# System #
############
upgrade_all_packages: false
homebrew_package_state: present
mas_package_state: "{{ homebrew_package_state }}"
playbook_dev_path: "{{ playbook_dir }}/.."
sudo_password: ""
# Use with "dev config". Examples: atom, code, pstorm, etc
edit_dev_config_with: vim
homebrew_cask_packages: []
homebrew_packages: []
mas_upgrade_all_apps: no
mas_installed_apps: []
# Example:
# - 904280696 # Things 3
managed_services_as_user:
- dnsmasq
- mailpit
- "mariadb@{{ mariadb_version }}"
- "postgresql@{{ postgresql_version }}"
- php
managed_services_as_root:
- nginx
managed_plists:
- com.minio.minio
############
# homebrew #
############
homebrew_cache_path: ${HOME}/Library/Caches/Homebrew
############
# dotfiles #
############
zsh_theme: ys
zsh_plugins:
- brew
- composer
- drush
- extract
- git
- history-substring-search
- httpie
- php-version-switcher
- sudo
- symfony
- laravel
- zsh-syntax-highlighting
zsh_custom_plugins:
- name: symfony
url: https://github.com/Akollade/symfony.plugin.zsh.git
- name: zsh-syntax-highlighting
url: https://github.com/zsh-users/zsh-syntax-highlighting.git
- name: php-version-switcher
url: https://github.com/Akollade/php-version-switcher.plugin.zsh
zsh_aliases:
- ll='ls -lh'
- tailf='tail -f'
- df='df -h'
- gut="git"
- gti="git"
- cat="bat"
# SSH config (~/.ssh/config)
ssh_config: ~
#ssh_config: |
# Host my_host
# HostName my_hostname
# User akollade
# Port 12345
#########
# GIT #
#########
git_user_name: X X
git_user_email: [email protected]
git_aliases:
ci: commit
st: status
br: branch
branches: >
!"git for-each-ref --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:iso8601)%09%(color:white)%(refname:short)' refs/heads"
co: checkout
cat: cat-file -p
lg: log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
lol: log --graph --pretty=format:\"%C(yellow)%h%Creset%C(cyan)%C(bold)%d%Creset %C(cyan)(%cr)%Creset %C(green)%ce%Creset %s\"
ds: diff --staged
# stash shortcuts
sl: stash list
sa: stash apply
ss: stash save
r: reset
# cancel last commit
r1: reset HEAD^
# https://github.com/tj/git-extras
install_git_extras: true
use_gpg_to_sign_commit: false
git_signingkey: "{{ '~/.ssh/id_ed25519.pub' | expanduser }}"
git_gpg_format: ssh
git_sequence_editor: ~
#########
# PHP #
#########
php_default_version: 8.3
php_versions:
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
php_all_versions:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
install_xdebug: true
# See https://bugs.xdebug.org/view.php?id=2167
disable_xdebug_install_for_versions:
- 7.4
- 8.0
# PECL
php_extensions:
- igbinary
- imagick
php_74_extensions: []
php_80_extensions: []
# packages needed to build extensions
php_extensions_dependencies:
- libiconv
php_fpm_memory_limit: 512M
php_custom_config:
- section: "PHP"
option: "max_execution_time"
value: 120
- section: "PHP"
option: "max_input_vars"
value: 3000
- section: "PHP"
option: "display_errors"
value: 1
- section: "PHP"
option: "error_reporting"
value: "E_ALL & ~E_DEPRECATED & ~E_STRICT"
- section: "PHP"
option: "error_log"
value: "{{ brew_prefix }}/var/log/php_errors.log"
- section: "PHP"
option: "memory_limit"
value: -1
- section: "PHP"
option: "upload_max_filesize"
value: "20M"
- section: "PHP"
option: "post_max_size"
value: "20M"
- section: "Date"
option: "date.timezone"
value: "Europe/Paris"
- section: "Session"
option: "session.cookie_lifetime"
value: 604800
- section: "Session"
option: "session.gc_maxlifetime"
value: 604800
- section: "mail function"
option: "sendmail_path"
value: "mailpit sendmail -t"
- section: "xdebug"
option: "xdebug.client_port"
value: "9003"
when: install_xdebug
- section: "xdebug"
option: "xdebug.mode"
value: 'debug'
when: install_xdebug
- section: "xdebug"
option: "xdebug.output_dir"
value: "{{ '~/dev/xdebug' | expanduser }}"
when: install_xdebug
- section: "xdebug"
option: "xdebug.idekey"
value: "mac-playbook"
when: install_xdebug
- section: "xdebug"
option: "xdebug.file_link_format"
value: "'phpstorm://open?file=%f&line=%l'"
when: install_xdebug
- section: "xdebug"
option: "xdebug.log"
value: "{{ brew_prefix }}/var/log/xdebug_remote.log"
when: install_xdebug
composer_global_packages: []
############
# Node.js #
############
nodejs_version: 20
###########
# Nginx #
###########
nginx_client_max_body_size: 5M
nginx_php_max_execution_time: 120
nginx_sites:
- name: example
server_name: example.localhost
nginx_type: symfony-flex
root: "~/dev/example/web"
redirect_to_https: true
https: true
nginx_system_sites:
- "{{ mailpit_nginx_site }}"
- "{{ minio_nginx_site }}"
nginx_certificates:
- localhost
- 127.0.0.1
#########
# DNS #
#########
dnsmasq_domains:
- localhost
#############
# MariaDB #
#############
mariadb_version: 10.6
mariadb_dev_user: dev
mariadb_dev_password: dev
# dont change after bootstrap
mariadb_root_password: ohvaiN2azoof0feeDi2
################
# PostgreSQL #
################
postgresql_version: 15
#############
# Mailpit #
#############
mailpit_ui_bind_addr: 0.0.0.0:8025
mailpit_smtp_bind_addr: 0.0.0.0:1025
mailpit_nginx_site:
name: mailpit
server_name: mailpit.localhost
type: custom
redirect_to_https: true
custom_config: |
location / {
proxy_pass http://{{ mailpit_ui_bind_addr }};
chunked_transfer_encoding on;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_redirect off;
proxy_buffering off;
}
#############
# Minio #
#############
minio_plist_name: com.minio.minio
minio_access_key: AKIAIOSFODNN7EXAMPLE
minio_secret_key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
minio_nginx_site:
name: minio
server_name: minio.localhost
type: custom
redirect_to_https: true
custom_config: |
# To allow special characters in headers
ignore_invalid_headers off;
# Allow any size file to be uploaded.
client_max_body_size 0;
# To disable buffering
proxy_buffering off;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_connect_timeout 300;
# Default is HTTP/1, keepalive is only enabled in HTTP/1.1
proxy_http_version 1.1;
proxy_set_header Connection "";
chunked_transfer_encoding off;
proxy_pass http://localhost:9005;
}