158 Commits

Author SHA1 Message Date
Luke Towers
0356a2fdbf
Document new ** value for app.trustedProxies
See 411695b3e7
2022-08-04 11:33:51 -06:00
Luke Towers
459b541e35
typo fix
Thanks @arvislacis for noticing
2022-07-17 11:19:34 -06:00
Luke Towers
fdbe42a78a
Document app.tempPath
Documents https://github.com/wintercms/storm/pull/89/files
2022-07-15 12:54:41 -06:00
Luke Towers
f05aba7387
Default to public visibility for the local disk
See https://github.com/wintercms/winter/issues/503
2022-07-08 16:00:19 -06:00
Jack Wilkinson
7fe167c41f
Split tests into relevant module folders
This splits the testing suite into the separate modules as appropriate in order to improve the reliability of the testing suite as a whole and make it easier for developers to have an up to date testing suite from the core to build off of. Additionally the tests are now namespaced and some minor improvements to the PluginManager were made.

Now the PluginManager will internally treat plugin identifiers as lower case strings, only transforming them to their normalized versions when requested by methods like getPlugins() & getAllPlugins(). The idea behind this is that it provides a much simpler way to internally handle checking, especially for plugin replacement where casing could cause issues.

Replaces #576. Fixes #575.
2022-06-21 18:30:30 -06:00
Marc Jauvin
9e1a02cad0
Update MailSettings for new Laravel mail config structure. (#522)
Requires wintercms/storm#79

Removed the following drivers configs not native in Laravel:
- Mailgun
- Mailchimp (Mandrill)
- Postmark
- SparkPost
- Amazon SES

Credit to @mjauvin
2022-04-05 14:40:49 -06:00
Luke Towers
c137760498 Run all config files through ArrayFile parser
This will minimize changes when ConfigWriter is used to set config values through PHP.
2022-03-16 10:55:07 -06:00
Luke Towers
3da0a32393 Merge branch 'wip/config-write-replacement' into wip/config-file
# Conflicts:
#	config/app.php
#	config/auth.php
#	config/cms.php
#	config/database.php
2022-03-15 21:52:10 -06:00
Luke Towers
520190f5e0 Tweaks to be more friendly with the ArrayFile parser 2022-03-15 21:26:52 -06:00
Luke Towers
70cfd902bd Revert "Run the default config through ArrayFile parser"
This reverts commit c3bdfae664c1cdde2ea1403027fc38b0822a0cf5.
2022-03-15 21:05:08 -06:00
Luke Towers
50417b2cb1 Remove support for varcharmax
This was originally added in bd9f88587f (and further refined in 160ae441ff) as a workaround for issues in MySQL < 5.7 and MariaDB < 10.2 related to the default string length when using the recommended utf8mb4 database encoding.

As of Laravel 8 the minimum supported versions of MySQL and MariaDB are not affected by this issue so we're now removing this configuration / workaround in Winter v1.2.
2022-03-09 16:05:58 -06:00
Marc Jauvin
bb67f3ef11
Use env() settings by default in config/cms.php (#484) 2022-03-08 09:03:09 +08:00
Luke Towers
897263e281 Run default config files through ConfigWriter to minimize changed lines on future uses 2022-02-17 10:46:22 -06:00
Luke Towers
be45c63d2c Code style fix 2022-02-15 13:24:16 -06:00
Ben Thomson
b7c92ffdd3
Apply correct default for cookie.secure config 2022-02-15 12:59:31 +08:00
Luke Towers
f6510979cc Sync config defaults with Laravel 9.x skeleton
Changed from Laravel defaults:
- Array configuration items should have their assigner operators aligned and keys should be sorted alphabetically

Removed:
- database.fetch: Removed from the default in Laravel 5.4 (and originally changed to FETCH_OBJ in 5.3) see 770c41552f & https://github.com/laravel/laravel/pull/3815
- filesystems.cloud: Removed from the default in Laravel 8.4.4 since it's not good practice to use Storage::cloud(), should use explicit disk configurations instead. See 82213fbf40
- services.mandrill: No longer officially supported since < Laravel 6.x; can use the SMTP driver instead
- services.sparkport: No longer officially supported in Laravel since < Laravel 6.x or Winter since v1.2 (third party package to reprovide driver is available but config should be manually added when desired.)
- services.stripe: Removed in Laravel v5.8.35, see 83d2ecc0e9

Explicitly not synced:
- Some calls to env(), will be addressed by future work on the ConfigWriter
- auth.php, will be addressed by future work to bring the Winter auth system more in line with the Laravel one
- cors.php, not implemented by default in Winter at the moment, plugins are available
- filesystems.php: storage.links & storage.disks.public not included because storage:link is not supported by Winter yet and further thought is needed for its inclusion.
- mail.php: markdown - Laravel's markdown mail functionality not verified to work within Winter which has it's own set of email templating logic. May be investigated and included later down the road if desired.
- sanctum.php: Laravel Sanctum is an authentication system for Laravel that is completely untested with Winter. Can be evaluated at a later date for inclusion.
2022-02-14 14:42:24 -06:00
Luke Towers
6fc163a0dc app config changes from Laravel 9 skeleton 2022-02-13 22:02:20 -06:00
Luke Towers
defe284303 Merge branch 'develop' into wip/1.2 2022-02-13 10:54:44 -06:00
Jack Wilkinson
9cb42fc6ca
Add support for the Laravel asset() helpers (#426)
Related: https://github.com/wintercms/storm/pull/67
2022-02-13 10:52:47 -06:00
WebVPF
ac33135ea3
typo fix (#424) 2022-01-31 08:50:38 +08:00
Luke Towers
ace576818a Style fix 2021-12-14 02:31:38 -06:00
Luke Towers
7473cbe27b Backport changes from 1.2 and ignore public directory in default .gitignore 2021-12-14 02:29:17 -06:00
Luke Towers
bff21dae09 Skipped failing tests for now, removed timeout on winter:test command, adjusting testing storage directory 2021-12-14 02:23:20 -06:00
Luke Towers
099f731290 Remove database.useConfigForTesting
Was redundant, should be using environment config (config/testing/*.php) instead
2021-12-14 01:19:01 -06:00
Luke Towers
0b6646213f Remove mentions of Rackspace and isolate the storage directory used by tests by default 2021-12-10 15:57:41 -06:00
Luke Towers
2bee2f2daf Support Symfony 6.
See fcecefda3f
2021-12-09 16:00:05 -06:00
Ben Thomson
49a49d216d
Add trusted proxy configuration variables (#235)
Fixes #232.

Related Storm PR: wintercms/storm#42
Related Storm commit: c8db154037
2021-07-29 15:30:20 +08:00
Ben Thomson
fdc8a7a993
Synchronise config files with Laravel 6 (#179) 2021-05-17 16:17:17 +08:00
Luke Towers
801c323297
Switch default db host to 127.0.0.1
This reverts 1ec2b69924 (bringing back 6c5a83de89) as it is more important for the default configuration to be in a working state for most environments than to optimize for performance for some environments. Having the default be `localhost` has caused issues for a large number of people (see https://github.com/octobercms/october/issues/3411, https://github.com/wintercms/winter/discussions/157, and probably many more). 

Additionally, this has been the default in Laravel since 5.2 (https://github.com/laravel/laravel/pull/3641) & 5.3 (fd42e10a5f).
2021-05-15 11:01:09 -06:00
Luke Towers
0061b09246
Fix issues when using a mirrored public directory and sqlite
Replaces #67
2021-04-05 10:43:47 -06:00
Luke Towers
8c4297af4b Merge branch 'october-develop' into develop
* october-develop:
  Support readonly and disabled fields when value is an array (#4683)
  Exception handling
  Improve configuration files (#5544)
  Update Dutch (nl) translations (#5543)

# Conflicts:
#	config/mail.php
#	modules/system/classes/MailManager.php
2021-03-31 10:20:40 -06:00
Alwin Drenth
675a90daa1
Improve configuration files (#5544)
* Improve config indentation

* Add missing new lines in config

* Add trailing comma to cms configuration file
2021-03-24 16:55:28 +11:00
Luke Towers
b160cfaae5 Add warning about re-using redis connections for the cache 2021-03-22 16:55:11 -06:00
Luke Towers
d0ec0d94f2 Limit trustedHosts verification to backend password resets by default for better compatibility 2021-03-11 20:56:28 -06:00
Luke Towers
1e8cfb47af Manual comb through and rebrand following up the bulk patch rebrand 2021-03-10 15:25:57 -06:00
Luke Towers
cfa763b714 Initial rebrand commit generated from the 1.0 rebrand branch patch file 2021-03-10 15:02:53 -06:00
Samuel Georges
848e99b59b Pump the gas on trusted hosts
Although a nice idea, this is an overreach of the platform's area of concern and we will come up with a better solution for it soon
2021-03-06 08:42:02 +11:00
Ben Thomson
555ab61f23
Add app.trustedHosts config and force host checks on password reset (#5423)
Add app.trustedHosts config and force host checks on backend password reset.

Related: f29865ae3d
2021-01-04 12:35:47 -06:00
Ayumi
df4c2cf86e
Default session.same_site to Lax (#5293) 2020-10-12 12:10:17 -06:00
Jukka
d4ac1595ad
Update auth.php (#5289)
typo fix
2020-09-29 11:56:51 -06:00
Luke Towers
444069da00 Finished implement imageWidth & imageHeight filters 2020-08-21 13:39:45 -06:00
Luke Towers
ca386e2dd1 tweak to default config for resized disk 2020-08-14 15:46:06 -06:00
Luke Towers
b4dd25534e Merge branch 'develop' into wip/image-resizing 2020-08-09 04:26:48 -06:00
Luke Towers
f56d1eebe8 Further work on the new resizing functionality 2020-08-06 18:18:28 -06:00
Luke Towers
1aab58d1e4 Merge branch 'develop' into wip/laravel-6 2020-07-19 01:35:37 -06:00
Luke Towers
5a5208bd0b Document caveat with uploaded file URL generation when installing October in a subfolder
Fixes #5204
2020-07-19 01:08:01 -06:00
Ben Thomson
4fb4e318f1
Add "develop.allowDeepSymlinks" configuration option.
Refs: https://github.com/octobercms/library/pull/491
2020-07-14 12:25:35 +08:00
Luke Towers
e7b6917ad5
Update config/app.php 2020-06-22 21:58:08 -06:00
Ben Thomson
0317ecec3c
Add app.loadDiscoveredPackages config item
Refs: https://github.com/octobercms/library/pull/492
2020-06-23 10:40:36 +08:00
Ben Thomson
8c61985114 Merge branch 'develop' into wip/laravel-6 2020-03-16 17:13:42 +08:00