@lando/drupal 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/.editorconfig +12 -0
  2. package/.eslintignore +4 -0
  3. package/.eslintrc.json +31 -0
  4. package/.gitattributes +11 -0
  5. package/.lando.yml +14 -0
  6. package/.node-version +1 -0
  7. package/.nyc_output/99fdf4f0-8d76-41e4-aec7-60f4bf6ec276.json +1 -0
  8. package/.nyc_output/b8533b5c-db35-4371-9b1c-dcbc92e964f3.json +1 -0
  9. package/.nyc_output/processinfo/99fdf4f0-8d76-41e4-aec7-60f4bf6ec276.json +1 -0
  10. package/.nyc_output/processinfo/b8533b5c-db35-4371-9b1c-dcbc92e964f3.json +1 -0
  11. package/.nyc_output/processinfo/index.json +1 -0
  12. package/.tool-versions +1 -0
  13. package/CHANGELOG.md +7 -0
  14. package/LICENSE.md +674 -0
  15. package/PRIVACY.md +169 -0
  16. package/README.md +74 -0
  17. package/actions-lando-config.yml +12 -0
  18. package/coverage/base.css +224 -0
  19. package/coverage/block-navigation.js +87 -0
  20. package/coverage/favicon.png +0 -0
  21. package/coverage/index.html +176 -0
  22. package/coverage/lib/index.html +116 -0
  23. package/coverage/lib/utils.js.html +151 -0
  24. package/coverage/prettify.css +1 -0
  25. package/coverage/prettify.js +2 -0
  26. package/coverage/recipes/drupal6/builder.js.html +160 -0
  27. package/coverage/recipes/drupal6/index.html +131 -0
  28. package/coverage/recipes/drupal6/init.js.html +109 -0
  29. package/coverage/recipes/drupal7/builder.js.html +151 -0
  30. package/coverage/recipes/drupal7/index.html +131 -0
  31. package/coverage/recipes/drupal7/init.js.html +109 -0
  32. package/coverage/recipes/drupal8/builder.js.html +193 -0
  33. package/coverage/recipes/drupal8/index.html +131 -0
  34. package/coverage/recipes/drupal8/init.js.html +109 -0
  35. package/coverage/recipes/drupal9/builder.js.html +211 -0
  36. package/coverage/recipes/drupal9/index.html +131 -0
  37. package/coverage/recipes/drupal9/init.js.html +109 -0
  38. package/coverage/sort-arrow-sprite.png +0 -0
  39. package/coverage/sorter.js +196 -0
  40. package/index.js +3 -0
  41. package/lib/utils.js +22 -0
  42. package/netlify.toml +25 -0
  43. package/package.json +62 -0
  44. package/plugin.yml +29 -0
  45. package/recipes/drupal6/builder.js +25 -0
  46. package/recipes/drupal6/default.conf.tpl +122 -0
  47. package/recipes/drupal6/init.js +8 -0
  48. package/recipes/drupal6/mysql.cnf +110 -0
  49. package/recipes/drupal6/php.ini +52 -0
  50. package/recipes/drupal7/builder.js +22 -0
  51. package/recipes/drupal7/default.conf.tpl +122 -0
  52. package/recipes/drupal7/init.js +8 -0
  53. package/recipes/drupal7/mysql.cnf +110 -0
  54. package/recipes/drupal7/php.ini +49 -0
  55. package/recipes/drupal8/builder.js +36 -0
  56. package/recipes/drupal8/default.conf.tpl +122 -0
  57. package/recipes/drupal8/init.js +8 -0
  58. package/recipes/drupal8/mysql.cnf +110 -0
  59. package/recipes/drupal8/php.ini +49 -0
  60. package/recipes/drupal9/builder.js +42 -0
  61. package/recipes/drupal9/default.conf.tpl +122 -0
  62. package/recipes/drupal9/init.js +8 -0
  63. package/recipes/drupal9/mysql.cnf +110 -0
  64. package/recipes/drupal9/php.ini +49 -0
@@ -0,0 +1,122 @@
1
+ server {
2
+ listen 80 default_server;
3
+ listen 443 ssl;
4
+
5
+ server_name localhost;
6
+
7
+ ssl_certificate /certs/cert.crt;
8
+ ssl_certificate_key /certs/cert.key;
9
+ ssl_verify_client off;
10
+
11
+ ssl_session_cache shared:SSL:1m;
12
+ ssl_session_timeout 5m;
13
+
14
+ ssl_ciphers HIGH:!aNULL:!MD5;
15
+ ssl_prefer_server_ciphers on;
16
+
17
+ port_in_redirect off;
18
+ client_max_body_size 100M;
19
+
20
+ root "{{LANDO_WEBROOT}}";
21
+
22
+ location = /favicon.ico {
23
+ log_not_found off;
24
+ access_log off;
25
+ }
26
+
27
+ location = /robots.txt {
28
+ allow all;
29
+ log_not_found off;
30
+ access_log off;
31
+ }
32
+
33
+ # Very rarely should these ever be accessed outside of your lan
34
+ location ~* \.(txt|log)$ {
35
+ allow 192.168.0.0/16;
36
+ deny all;
37
+ }
38
+
39
+ location ~ \..*/.*\.php$ {
40
+ return 403;
41
+ }
42
+
43
+ location ~ ^/sites/.*/private/ {
44
+ return 403;
45
+ }
46
+
47
+ # Allow "Well-Known URIs" as per RFC 5785
48
+ location ~* ^/.well-known/ {
49
+ allow all;
50
+ }
51
+
52
+ # Block access to "hidden" files and directories whose names begin with a
53
+ # period. This includes directories used by version control systems such
54
+ # as Subversion or Git to store control files.
55
+ location ~ (^|/)\. {
56
+ return 403;
57
+ }
58
+
59
+ location / {
60
+ # try_files $uri @rewrite; # For Drupal <= 6
61
+ try_files $uri /index.php?$query_string; # For Drupal >= 7
62
+ }
63
+
64
+ location @rewrite {
65
+ rewrite ^/(.*)$ /index.php?q=$1;
66
+ }
67
+
68
+ # Don't allow direct access to PHP files in the vendor directory.
69
+ location ~ /vendor/.*\.php$ {
70
+ deny all;
71
+ return 404;
72
+ }
73
+
74
+ # In Drupal 8, we must also match new paths where the '.php' appears in
75
+ # the middle, such as update.php/selection. The rule we use is strict,
76
+ # and only allows this pattern with the update.php front controller.
77
+ # This allows legacy path aliases in the form of
78
+ # blog/index.php/legacy-path to continue to route to Drupal nodes. If
79
+ # you do not have any paths like that, then you might prefer to use a
80
+ # laxer rule, such as:
81
+ # location ~ \.php(/|$) {
82
+ # The laxer rule will continue to work if Drupal uses this new URL
83
+ # pattern with front controllers other than update.php in a future
84
+ # release.
85
+ location ~ '\.php$|^/update.php' {
86
+ fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
87
+ # Security note: If you're running a version of PHP older than the
88
+ # latest 5.3, you should have "cgi.fix_pathinfo = 0;" in php.ini.
89
+ # See http://serverfault.com/q/627903/94922 for details.
90
+ include fastcgi_params;
91
+ # Block httpoxy attacks. See https://httpoxy.org/.
92
+ fastcgi_param HTTP_PROXY "";
93
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
94
+ fastcgi_param PATH_INFO $fastcgi_path_info;
95
+ fastcgi_param QUERY_STRING $query_string;
96
+ fastcgi_intercept_errors on;
97
+ # PHP 5 socket location.
98
+ #fastcgi_pass unix:/var/run/php5-fpm.sock;
99
+ # PHP 7 socket location.
100
+ #fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
101
+ #lando
102
+ fastcgi_pass fpm:9000;
103
+ }
104
+
105
+ # Fighting with Styles? This little gem is amazing.
106
+ # location ~ ^/sites/.*/files/imagecache/ { # For Drupal <= 6
107
+ location ~ ^(/[a-z\-]+)?/sites/.*/files/styles/ { # For Drupal >= 7
108
+ try_files $uri @rewrite;
109
+ }
110
+
111
+ # Handle private files through Drupal. Private file's path can come
112
+ # with a language prefix.
113
+ location ~ ^(/[a-z\-]+)?/system/files/ { # For Drupal >= 7
114
+ try_files $uri /index.php?$query_string;
115
+ }
116
+
117
+ location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
118
+ expires max;
119
+ log_not_found off;
120
+ }
121
+
122
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ /*
4
+ * Init Lamp
5
+ */
6
+ module.exports = {
7
+ name: 'drupal7',
8
+ };
@@ -0,0 +1,110 @@
1
+ #
2
+ # The MySQL database server configuration file for Lando
3
+ #
4
+
5
+ [mysqld]
6
+ #
7
+ # * Basic Settings
8
+ #
9
+ # Data is stored in a volume on the db container /sql
10
+ # default-storage-engine = innodb
11
+
12
+ #
13
+ # * Fine Tuning
14
+ #
15
+ key_buffer_size = 384M
16
+ max_allowed_packet = 32M
17
+ thread_stack = 400K
18
+ thread_cache_size = 8
19
+ # This replaces the startup script and checks MyISAM tables if needed
20
+ # the first time they are touched
21
+ #max_connections = 100
22
+ #table_cache = 64
23
+ #thread_concurrency = 10
24
+ read_rnd_buffer_size = 8M
25
+ myisam_sort_buffer_size = 64M
26
+ table_open_cache = 512
27
+ sort_buffer_size = 2M
28
+ read_buffer_size = 2M
29
+
30
+ #
31
+ # * Query Cache Configuration
32
+ #
33
+ query_cache_limit = 1M
34
+ query_cache_size = 64M
35
+ #
36
+ # * Logging and Replication
37
+ #
38
+ # Both location gets rotated by the cronjob.
39
+ # Be aware that this log type is a performance killer.
40
+ # As of 5.1 you can enable the log at runtime!
41
+ #general_log_file = /src/.lando/log/mysql.log
42
+ #general_log = 1
43
+ #
44
+ # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
45
+ #
46
+ # Here you can see queries with especially long duration
47
+ #log_slow_queries = /var/log/mysql/mysql-slow.log
48
+ #long_query_time = 2
49
+ #log-queries-not-using-indexes
50
+ #
51
+ # The following can be used as easy to replay backup logs or for replication.
52
+ # note: if you are setting up a replication slave, see README.Debian about
53
+ # other settings you may need to change.
54
+ #server-id = 1
55
+ #log_bin = /src/.lando/log/mysql-bin.log
56
+ expire_logs_days = 10
57
+ max_binlog_size = 100M
58
+ #binlog_do_db = include_database_name
59
+ #binlog_ignore_db = include_database_name
60
+ #
61
+ # * InnoDB
62
+ #
63
+ # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
64
+ # Read the manual for more InnoDB related options. There are many!
65
+ #
66
+ # Uncomment the following if you are using InnoDB tables
67
+ #innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
68
+ #innodb_log_group_home_dir = C:\mysql\data/
69
+ # You can set .._buffer_pool_size up to 50 - 80 %
70
+ # of RAM but beware of setting memory usage too high
71
+ #innodb_buffer_pool_size = 384M
72
+ #innodb_additional_mem_pool_size = 20M
73
+ # Set .._log_file_size to 25 % of buffer pool size
74
+ innodb_log_file_size = 100M
75
+ #innodb_log_buffer_size = 8M
76
+ innodb_flush_log_at_trx_commit = 0
77
+ #innodb_lock_wait_timeout = 50
78
+ innodb_buffer_pool_size = 384M
79
+ innodb_log_buffer_size = 4M
80
+ innodb_file_per_table = 1
81
+ innodb_open_files = 256
82
+ innodb_io_capacity = 512
83
+ innodb_flush_method = O_DIRECT
84
+ innodb_thread_concurrency = 8
85
+ innodb_lock_wait_timeout = 120
86
+ #
87
+ # * Security Features
88
+ #
89
+ # Read the manual, too, if you want chroot!
90
+ # chroot = /var/lib/mysql/
91
+ #
92
+ # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
93
+ #
94
+ # ssl-ca=/etc/mysql/cacert.pem
95
+ # ssl-cert=/etc/mysql/server-cert.pem
96
+ # ssl-key=/etc/mysql/server-key.pem
97
+
98
+ [mysqldump]
99
+ quick
100
+ quote-names
101
+ max_allowed_packet = 32M
102
+
103
+ [mysql]
104
+ #no-auto-rehash # faster start of mysql but no tab completion
105
+
106
+ [isamchk]
107
+ key_buffer_size = 384M
108
+ sort_buffer_size = 256M
109
+ read_buffer = 2M
110
+ write_buffer = 2M
@@ -0,0 +1,49 @@
1
+ [PHP]
2
+
3
+ ;;;;;;;;;;;;;;;
4
+ ; PHP Globals ;
5
+ ;;;;;;;;;;;;;;;
6
+
7
+ short_open_tag = Off
8
+ output_buffering = 4096
9
+ allow_call_time_pass_reference = Off
10
+ request_order = "GP"
11
+ register_long_arrays = Off
12
+ register_argc_argv = Off
13
+ magic_quotes_gpc = Off
14
+ enable_dl = Off
15
+ allow_url_fopen = On
16
+ realpath_cache_size = "800K"
17
+ realpath_cache_ttl = "86400"
18
+ disable_functions =
19
+ sendmail_path=/bin/true
20
+ ;include_path = ".:/usr/share/pear:/usr/share/php"
21
+
22
+ [Date]
23
+ date.timezone = "UTC"
24
+
25
+ ;;;;;;;;;;;;;;;;;;;;;;
26
+ ;; PACKAGE SETTINGS ;;
27
+ ;;;;;;;;;;;;;;;;;;;;;;
28
+
29
+ ; Xdebug
30
+ xdebug.max_nesting_level = 512
31
+ xdebug.show_exception_trace = 0
32
+ xdebug.collect_params = 0
33
+ xdebug.remote_autostart = 1
34
+ xdebug.start_with_request = trigger
35
+ xdebug.mode = ${XDEBUG_MODE}
36
+
37
+ ; Globals
38
+ expose_php = on
39
+ max_execution_time = 90
40
+ max_input_time = 900
41
+ max_input_vars = 10000
42
+ memory_limit = ${PHP_MEMORY_LIMIT}
43
+ upload_max_filesize = 100M
44
+ post_max_size = 100M
45
+ error_reporting = E_ALL & ~E_DEPRECATED
46
+ ignore_repeated_errors = on
47
+ html_errors = off
48
+ display_errors = on
49
+ log_errors = on
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ // Modules
4
+ const _ = require('lodash');
5
+ const utils = require('./../../lib/utils');
6
+
7
+ // Get install DC command
8
+ const dcInstall = utils.getPhar('https://drupalconsole.com/installer', '/tmp/drupal.phar', '/usr/local/bin/drupal');
9
+
10
+ /*
11
+ * Build Drupal 8
12
+ */
13
+ module.exports = {
14
+ name: 'drupal8',
15
+ parent: '_drupaly',
16
+ config: {
17
+ confSrc: __dirname,
18
+ defaultFiles: {},
19
+ php: '7.3',
20
+ drupal: true,
21
+ },
22
+ builder: (parent, config) => class LandoDrupal8 extends parent {
23
+ constructor(id, options = {}) {
24
+ options = _.merge({}, config, options);
25
+ // Add in drupal console things
26
+ if (options.drupal === true) {
27
+ options.build = [dcInstall];
28
+ options.tooling = {drupal: {
29
+ service: 'appserver',
30
+ description: 'Runs drupal console commands',
31
+ }};
32
+ }
33
+ super(id, options);
34
+ };
35
+ },
36
+ };
@@ -0,0 +1,122 @@
1
+ server {
2
+ listen 80 default_server;
3
+ listen 443 ssl;
4
+
5
+ server_name localhost;
6
+
7
+ ssl_certificate /certs/cert.crt;
8
+ ssl_certificate_key /certs/cert.key;
9
+ ssl_verify_client off;
10
+
11
+ ssl_session_cache shared:SSL:1m;
12
+ ssl_session_timeout 5m;
13
+
14
+ ssl_ciphers HIGH:!aNULL:!MD5;
15
+ ssl_prefer_server_ciphers on;
16
+
17
+ port_in_redirect off;
18
+ client_max_body_size 100M;
19
+
20
+ root "{{LANDO_WEBROOT}}";
21
+
22
+ location = /favicon.ico {
23
+ log_not_found off;
24
+ access_log off;
25
+ }
26
+
27
+ location = /robots.txt {
28
+ allow all;
29
+ log_not_found off;
30
+ access_log off;
31
+ }
32
+
33
+ # Very rarely should these ever be accessed outside of your lan
34
+ location ~* \.(txt|log)$ {
35
+ allow 192.168.0.0/16;
36
+ deny all;
37
+ }
38
+
39
+ location ~ \..*/.*\.php$ {
40
+ return 403;
41
+ }
42
+
43
+ location ~ ^/sites/.*/private/ {
44
+ return 403;
45
+ }
46
+
47
+ # Allow "Well-Known URIs" as per RFC 5785
48
+ location ~* ^/.well-known/ {
49
+ allow all;
50
+ }
51
+
52
+ # Block access to "hidden" files and directories whose names begin with a
53
+ # period. This includes directories used by version control systems such
54
+ # as Subversion or Git to store control files.
55
+ location ~ (^|/)\. {
56
+ return 403;
57
+ }
58
+
59
+ location / {
60
+ # try_files $uri @rewrite; # For Drupal <= 6
61
+ try_files $uri /index.php?$query_string; # For Drupal >= 7
62
+ }
63
+
64
+ location @rewrite {
65
+ rewrite ^/(.*)$ /index.php?q=$1;
66
+ }
67
+
68
+ # Don't allow direct access to PHP files in the vendor directory.
69
+ location ~ /vendor/.*\.php$ {
70
+ deny all;
71
+ return 404;
72
+ }
73
+
74
+ # In Drupal 8, we must also match new paths where the '.php' appears in
75
+ # the middle, such as update.php/selection. The rule we use is strict,
76
+ # and only allows this pattern with the update.php front controller.
77
+ # This allows legacy path aliases in the form of
78
+ # blog/index.php/legacy-path to continue to route to Drupal nodes. If
79
+ # you do not have any paths like that, then you might prefer to use a
80
+ # laxer rule, such as:
81
+ # location ~ \.php(/|$) {
82
+ # The laxer rule will continue to work if Drupal uses this new URL
83
+ # pattern with front controllers other than update.php in a future
84
+ # release.
85
+ location ~ '\.php$|^/update.php' {
86
+ fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
87
+ # Security note: If you're running a version of PHP older than the
88
+ # latest 5.3, you should have "cgi.fix_pathinfo = 0;" in php.ini.
89
+ # See http://serverfault.com/q/627903/94922 for details.
90
+ include fastcgi_params;
91
+ # Block httpoxy attacks. See https://httpoxy.org/.
92
+ fastcgi_param HTTP_PROXY "";
93
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
94
+ fastcgi_param PATH_INFO $fastcgi_path_info;
95
+ fastcgi_param QUERY_STRING $query_string;
96
+ fastcgi_intercept_errors on;
97
+ # PHP 5 socket location.
98
+ #fastcgi_pass unix:/var/run/php5-fpm.sock;
99
+ # PHP 7 socket location.
100
+ #fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
101
+ #lando
102
+ fastcgi_pass fpm:9000;
103
+ }
104
+
105
+ # Fighting with Styles? This little gem is amazing.
106
+ # location ~ ^/sites/.*/files/imagecache/ { # For Drupal <= 6
107
+ location ~ ^(/[a-z\-]+)?/sites/.*/files/styles/ { # For Drupal >= 7
108
+ try_files $uri @rewrite;
109
+ }
110
+
111
+ # Handle private files through Drupal. Private file's path can come
112
+ # with a language prefix.
113
+ location ~ ^(/[a-z\-]+)?/system/files/ { # For Drupal >= 7
114
+ try_files $uri /index.php?$query_string;
115
+ }
116
+
117
+ location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
118
+ expires max;
119
+ log_not_found off;
120
+ }
121
+
122
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ /*
4
+ * Init Lamp
5
+ */
6
+ module.exports = {
7
+ name: 'drupal8',
8
+ };
@@ -0,0 +1,110 @@
1
+ #
2
+ # The MySQL database server configuration file for Lando
3
+ #
4
+
5
+ [mysqld]
6
+ #
7
+ # * Basic Settings
8
+ #
9
+ # Data is stored in a volume on the db container /sql
10
+ default-storage-engine = innodb
11
+
12
+ #
13
+ # * Fine Tuning
14
+ #
15
+ key_buffer_size = 384M
16
+ max_allowed_packet = 32M
17
+ thread_stack = 400K
18
+ thread_cache_size = 8
19
+ # This replaces the startup script and checks MyISAM tables if needed
20
+ # the first time they are touched
21
+ #max_connections = 100
22
+ #table_cache = 64
23
+ #thread_concurrency = 10
24
+ read_rnd_buffer_size = 8M
25
+ myisam_sort_buffer_size = 64M
26
+ table_open_cache = 512
27
+ sort_buffer_size = 2M
28
+ read_buffer_size = 2M
29
+
30
+ #
31
+ # * Query Cache Configuration
32
+ #
33
+ query_cache_limit = 1M
34
+ query_cache_size = 64M
35
+ #
36
+ # * Logging and Replication
37
+ #
38
+ # Both location gets rotated by the cronjob.
39
+ # Be aware that this log type is a performance killer.
40
+ # As of 5.1 you can enable the log at runtime!
41
+ #general_log_file = /src/.lando/log/mysql.log
42
+ #general_log = 1
43
+ #
44
+ # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
45
+ #
46
+ # Here you can see queries with especially long duration
47
+ #log_slow_queries = /var/log/mysql/mysql-slow.log
48
+ #long_query_time = 2
49
+ #log-queries-not-using-indexes
50
+ #
51
+ # The following can be used as easy to replay backup logs or for replication.
52
+ # note: if you are setting up a replication slave, see README.Debian about
53
+ # other settings you may need to change.
54
+ #server-id = 1
55
+ #log_bin = /src/.lando/log/mysql-bin.log
56
+ expire_logs_days = 10
57
+ max_binlog_size = 100M
58
+ #binlog_do_db = include_database_name
59
+ #binlog_ignore_db = include_database_name
60
+ #
61
+ # * InnoDB
62
+ #
63
+ # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
64
+ # Read the manual for more InnoDB related options. There are many!
65
+ #
66
+ # Uncomment the following if you are using InnoDB tables
67
+ #innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
68
+ #innodb_log_group_home_dir = C:\mysql\data/
69
+ # You can set .._buffer_pool_size up to 50 - 80 %
70
+ # of RAM but beware of setting memory usage too high
71
+ #innodb_buffer_pool_size = 384M
72
+ #innodb_additional_mem_pool_size = 20M
73
+ # Set .._log_file_size to 25 % of buffer pool size
74
+ innodb_log_file_size = 100M
75
+ #innodb_log_buffer_size = 8M
76
+ innodb_flush_log_at_trx_commit = 0
77
+ #innodb_lock_wait_timeout = 50
78
+ innodb_buffer_pool_size = 384M
79
+ innodb_log_buffer_size = 4M
80
+ innodb_file_per_table = 1
81
+ innodb_open_files = 256
82
+ innodb_io_capacity = 512
83
+ innodb_flush_method = O_DIRECT
84
+ innodb_thread_concurrency = 8
85
+ innodb_lock_wait_timeout = 120
86
+ #
87
+ # * Security Features
88
+ #
89
+ # Read the manual, too, if you want chroot!
90
+ # chroot = /var/lib/mysql/
91
+ #
92
+ # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
93
+ #
94
+ # ssl-ca=/etc/mysql/cacert.pem
95
+ # ssl-cert=/etc/mysql/server-cert.pem
96
+ # ssl-key=/etc/mysql/server-key.pem
97
+
98
+ [mysqldump]
99
+ quick
100
+ quote-names
101
+ max_allowed_packet = 32M
102
+
103
+ [mysql]
104
+ #no-auto-rehash # faster start of mysql but no tab completion
105
+
106
+ [isamchk]
107
+ key_buffer_size = 384M
108
+ sort_buffer_size = 256M
109
+ read_buffer = 2M
110
+ write_buffer = 2M
@@ -0,0 +1,49 @@
1
+ [PHP]
2
+
3
+ ;;;;;;;;;;;;;;;
4
+ ; PHP Globals ;
5
+ ;;;;;;;;;;;;;;;
6
+
7
+ short_open_tag = Off
8
+ output_buffering = 4096
9
+ allow_call_time_pass_reference = Off
10
+ request_order = "GP"
11
+ register_long_arrays = Off
12
+ register_argc_argv = Off
13
+ magic_quotes_gpc = Off
14
+ enable_dl = Off
15
+ allow_url_fopen = On
16
+ realpath_cache_size = "800K"
17
+ realpath_cache_ttl = "86400"
18
+ disable_functions =
19
+ sendmail_path=/bin/true
20
+ ;include_path = ".:/usr/share/pear:/usr/share/php"
21
+
22
+ [Date]
23
+ date.timezone = "UTC"
24
+
25
+ ;;;;;;;;;;;;;;;;;;;;;;
26
+ ;; PACKAGE SETTINGS ;;
27
+ ;;;;;;;;;;;;;;;;;;;;;;
28
+
29
+ ; Xdebug
30
+ xdebug.max_nesting_level = 512
31
+ xdebug.show_exception_trace = 0
32
+ xdebug.collect_params = 0
33
+ xdebug.remote_autostart = 1
34
+ xdebug.start_with_request = trigger
35
+ xdebug.mode = ${XDEBUG_MODE}
36
+
37
+ ; Globals
38
+ expose_php = on
39
+ max_execution_time = 90
40
+ max_input_time = 900
41
+ max_input_vars = 10000
42
+ memory_limit = ${PHP_MEMORY_LIMIT}
43
+ upload_max_filesize = 100M
44
+ post_max_size = 100M
45
+ error_reporting = E_ALL & ~E_DEPRECATED
46
+ ignore_repeated_errors = on
47
+ html_errors = off
48
+ display_errors = on
49
+ log_errors = on
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ // Modules
4
+ const _ = require('lodash');
5
+
6
+ // Get install DC command
7
+ // const utils = require('./../../lib/utils');
8
+ // const dcInstall = utils.getPhar('https://drupalconsole.com/installer', '/tmp/drupal.phar', '/usr/local/bin/drupal');
9
+
10
+ /*
11
+ * Build Drupal 9
12
+ */
13
+ module.exports = {
14
+ name: 'drupal9',
15
+ parent: '_drupaly',
16
+ config: {
17
+ confSrc: __dirname,
18
+ defaultFiles: {},
19
+ php: '8.0',
20
+ drush: '^10',
21
+ },
22
+ builder: (parent, config) => class LandoDrupal9 extends parent {
23
+ constructor(id, options = {}) {
24
+ options = _.merge({}, config, options);
25
+ // Set drush to false
26
+ options.drush = false;
27
+
28
+ // Let's make sure we set appropripate default versions for things
29
+ // See: https://www.drupal.org/docs/9/how-drupal-9-is-made-and-what-is-included/environment-requirements-of-drupal-9
30
+ if (_.get(options, 'database') === 'mysql') {
31
+ options.database = 'mysql:5.7';
32
+ } else if (_.get(options, 'database') === 'mariadb') {
33
+ options.database = 'mariadb:10.3';
34
+ } else if (_.get(options, 'database') === 'postgres') {
35
+ options.database = 'postgres:10';
36
+ }
37
+
38
+ // Send it downstream
39
+ super(id, options);
40
+ };
41
+ },
42
+ };