-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathclamp.defaults.json
80 lines (80 loc) · 3.09 KB
/
clamp.defaults.json
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
{
"address": "localhost",
"memory": "256M",
"database": "db",
"apache": {
"commands": {
"httpd": "httpd"
},
"options": {
"<Directory": " '{{$cwd}}'>",
"AllowOverride": "All",
"</Directory>": "",
"servername": "{{$.address}}",
"listen": "9988",
"documentroot": "'{{$cwd}}'",
"serverroot": "'{{$cwd}}'",
"pidfile": "'{{$cwd}}/.clamp/tmp/httpd.pid'",
"defaultruntimedir": "'{{$cwd}}/.clamp/tmp",
"loglevel": "info",
"errorlog": "'{{$cwd}}/.clamp/logs/apache.error.log'",
"customlog": "'{{$cwd}}/.clamp/logs/apache.access.log' common",
"addtype": "application/x-httpd-php .php",
"directoryindex": "index.html index.php",
"setenv": "LOCAL_SERVER true",
"user": "`whoami`",
"autoopen": false,
"group": "_www",
"\" -C \"loadmodule mpm_prefork_module": "/usr/libexec/apache2/mod_mpm_prefork.so",
"loadmodule": {
"authz_host_module": "/usr/libexec/apache2/mod_authz_host.so",
"authz_core_module": "/usr/libexec/apache2/mod_authz_core.so",
"dir_module": "/usr/libexec/apache2/mod_dir.so",
"env_module": "/usr/libexec/apache2/mod_env.so",
"mime_module": "/usr/libexec/apache2/mod_mime.so",
"log_config_module": "/usr/libexec/apache2/mod_log_config.so",
"rewrite_module": "/usr/libexec/apache2/mod_rewrite.so",
"php7_module": "/usr/libexec/apache2/libphp7.so",
"unixd_module": "/usr/libexec/apache2/mod_unixd.so"
},
"php_admin_value": "{{$.php.options}}"
}
},
"host": {
"options": {
"127.0.0.1": "{{$.address}}"
}
},
"mysql": {
"commands": {
"mysql": "$(brew --prefix mariadb)/bin/mysql",
"mysqld": "$(brew --prefix mariadb)/bin/mysqld",
"mysqladmin": "$(brew --prefix mariadb)/bin/mysqladmin",
"mysqldump": "$(brew --prefix mariadb)/bin/mysqldump",
"mysql_install_db": "$(brew --prefix mariadb)/bin/mysql_install_db"
},
"databases": [
"{{$.database}}"
],
"options": {
"bind-address": "127.0.0.1",
"port": "3306",
"lower_case_table_names": 2,
"basedir": "$(brew --prefix mariadb)",
"datadir": "'{{$cwd}}/.clamp/data'",
"socket": "'{{$cwd}}/.clamp/tmp/mysql.sock'",
"pid-file": "'{{$cwd}}/.clamp/tmp/mysql.pid'",
"log_error": "'{{$cwd}}/.clamp/logs/mysql.error.log'",
"max_binlog_size": "10M",
"max_allowed_packet": "32M"
}
},
"php": {
"options": {
"memory_limit": "{{$.memory}}",
"pdo_mysql.default_socket": "{{$.mysql.options.socket}}",
"mysql.default_socket": "{{$.mysql.options.socket}}",
"mysqli.default_socket": "{{$.mysql.options.socket}}"
}
}
}