Austin Drummond
ba2d5727ed
Update CraftValetDriver.php
...
When applying https://github.com/craftcms/security-patches to a Craft project, the fix for [CVE-2024-56145](https://github.com/advisories/GHSA-2p6p-9rc9-62j9 ) breaks sites served by Valet (and Herd).
This fix allows these sites to work when using Valet (and Herd).
2025-05-01 21:59:37 -04:00
Saibotk
0525673051
fix(php-fpm): correct socket creation
...
While my PR #1514 fixed recreating the FPM configs, it introduced a different issue:
Due to the use of `utilizedPhpVersions()`, the code now also configured the FPM config for the alias `php` version.
This caused it to invoke the configure function with an empty version string and thus overwriting the FPM config for (in my case) the php@8.4 config templated with `valet.sock` instead of the correct `valet84.sock`.
The nginx sites that were configured to proxy their requests to the `valet84.sock` then failed because it did not exist anymore.
We fixed this by always including the actual linked PHP version via the `linkedPhp` function. This returns `php8.4` instead of `php`.
`php` is an alias anyway and this also removes another unnecessary service restart call. Previously, this would also try to restart the `php` service via brew which was already restarted through the restart of `php@8.4`, which is an alias in brew.
This also fixes an issue with the previous PR, to correctly symlink `valet.sock` again to the linked PHP version, which we oversaw.
2025-04-25 23:03:44 +02:00
Saibotk
f670b62010
fix(php-fpm): correctly reconfigure all versions
...
This previously only reapplied the configuration for the linked version.
Because it is recommended to run valet install again after a brew upgrade, it is necessary to update all utilized PHP versions.
On brew upgrades, some versions received the default www.conf again. This would leave the user with a broken setup until they either call `valet use php@X.X` for all the versions or isolate a site again with the version.
This commit fixes the behavior by rerunning the configuration step on all php versions. This is more consistent, because in the next line all utilized PHP versions are also restarted.
2025-04-15 15:36:15 +02:00
crynobone
c4c650d567
Fix code styling
2025-02-12 01:38:26 +00:00
Mischa Braam
ff82b3ee10
Change latest php version to 8.4
2024-12-11 10:07:08 +01:00
Matt Stauffer
ff4b7675c4
Merge pull request #1504 from mitchkramez/bugfix-loopback-regex-fix
...
Fixes bad regex for loopback replacement for Issue #1503
2024-12-09 20:39:19 -05:00
Matt Stauffer
440bb128ad
Merge pull request #1498 from adrum/feature/renew-ca
...
Add the ability to renew the Certificate Authority certificate
2024-12-09 20:37:05 -05:00
Mitch Kramer
2b9f4940a5
Fixes bad regex for loopback replacement
2024-11-26 10:43:03 -06:00
Supian M
7efa837b5e
Add support for PHP 8.4
...
Include PHP 8.4 in the list of supported PHP versions in both Valet Brew and GitHub Actions test matrix. This ensures compatibility and testing for the latest PHP release.
2024-11-17 20:49:59 +08:00
Austin Drummond
3c0015c305
add the ability to see the Certificate Authority expiration date
2024-11-15 12:09:11 -05:00
Austin Drummond
072859eced
add the ability to renew the CA when renewing all certs
2024-11-15 12:00:33 -05:00
mattstauffer
13da2f7dde
Fix code styling
2024-08-25 03:36:57 +00:00
Matt Stauffer
ea57d98621
Refactor heavily nested cloudflared currentTunnelUrl
...
Co-Authored-By: Mateus Junges <mateus@junges.dev >
2024-08-24 22:27:35 -05:00
Matt Stauffer
374eaa0d59
Make domain required in currentTunnelUrl
...
These methods are never passed null anyway.
Co-Authored-By: Mateus Junges <mateus@junges.dev >
2024-08-24 22:19:28 -05:00
Matt Stauffer
628997d835
Extract Cloudflared tunnels method
2024-08-24 19:33:17 -05:00
Matt Stauffer
81efb8eee1
Merge branch 'cloudflared' of https://github.com/rcknr/valet into rcknr-cloudflared
2024-08-24 15:49:01 -05:00
driesvints
fc1b23b523
Fix code styling
2024-08-02 08:24:13 +00:00
Sergii Kauk
dce6b3ca6e
Merge branch 'master' into cloudflared
2024-07-30 10:53:52 +02:00
Austin Drummond
e7c0dbadd6
update phrasing
2024-06-21 13:46:10 -04:00
Austin Drummond
a39a7b0937
prevent the old cert from being removed if the trust ca command is canceled
2024-06-21 13:14:48 -04:00
Austin Drummond
72845a36f7
throw exception if trust CA is canceled
2024-06-21 13:14:32 -04:00
driesvints
2c3e2f3da1
Fix code styling
2024-06-18 16:58:03 +00:00
Matt Stauffer
78657cdb35
Merge pull request #1486 from antonL95/feat_add_nette_framework_driver
...
Adding support for Nette Framework.
2024-06-03 10:43:12 -04:00
Matt Stauffer
0844c565a5
Merge pull request #1477 from adriaanzon/fix-path-keys
...
Add values() call to reset keys after modifying paths
2024-06-02 09:43:01 -04:00
Anton
4a43ab03db
Updated serves method to better determine that it's actually nette project.
2024-06-01 14:57:23 +02:00
mattstauffer
cb1cc54927
Fix code styling
2024-05-31 22:45:28 +00:00
Matt Stauffer
3003ccb18e
Merge pull request #1471 from Werbschaft/patch-1
...
Update KirbyValetDriver.php
2024-05-31 18:45:03 -04:00
mattstauffer
6118bc2668
Fix code styling
2024-05-31 22:34:01 +00:00
Matt Stauffer
2da59f9934
Merge pull request #1463 from adrum/feature/trust-ca-cert
...
Trust CA Certificate only
2024-05-31 18:33:37 -04:00
Anton
8cf9bd2b91
Adding support for Nette Framework.
2024-05-14 12:00:43 +02:00
Ahmed Ammar
0f3ab1fec8
Ignore invalid paths ( #1478 )
2024-05-07 15:22:40 +02:00
Adriaan Zonnenberg
b637376b2e
Add values() call to reset keys after modifying paths
2024-03-22 21:47:46 +01:00
Oli
40c6b2891b
Update KirbyValetDriver.php
...
This makes it possible to open PHP files again, see this discussion. The solution from rasteiner works perfectly. You can also have a look @pedroborges ?
https://forum.getkirby.com/t/use-php-and-kirby-in-css-file/30724
2024-02-19 09:49:37 +01:00
Sergii Kauk
a5707751c8
Update Brew formula
2024-01-22 16:27:58 +01:00
Sergii Kauk
4c5fd953fc
A bit of refactoring
2024-01-08 09:57:46 +01:00
Sergii Kauk
ca288d4066
Add a new share tool, cloudflared
2024-01-07 18:18:10 +01:00
Chris Brown
e3e5bea388
Allow renew() to be called without parameters ( #1465 )
...
A reasonable default is set here, consistent with the default set in other places.
Fixes #1464
Updates #1461
2024-01-01 10:12:56 +01:00
Austin Drummond
c0a2c7ed57
Merge branch 'master' into feature/trust-ca-cert
2023-12-22 12:42:24 -05:00
Austin Drummond
c79bc9851a
only trust the CA, not the individual cert
2023-12-22 12:41:55 -05:00
Matt Stauffer
59b19a20aa
Clean up syntax from #1461
2023-12-20 22:46:05 -05:00
Matt Stauffer
3ecfb36331
Merge branch 'master' of github.com:laravel/valet
2023-12-20 22:45:41 -05:00
mattstauffer
9d3d2ee785
Fix code styling
2023-12-21 03:45:03 +00:00
Matt Stauffer
81a2b3bd52
Merge pull request #1461 from adrum/feature/renew-certs
...
added the ability to renew certs and view their expiration dates
2023-12-20 22:44:43 -05:00
Matt Stauffer
b1b84fe163
Minor formatting tweaks to #1460
2023-12-20 22:40:28 -05:00
mattstauffer
34b4f03092
Fix code styling
2023-12-21 03:39:28 +00:00
Matt Stauffer
9c922e5a2f
Merge pull request #1460 from rana01645/master
...
Update "fetch-share-url" to pull correct URL for HTTPS tunnels, not just HTTP
2023-12-20 22:39:06 -05:00
mattstauffer
3f2b62954c
Fix code styling
2023-12-21 03:29:15 +00:00
Matt Stauffer
47847d51e9
Merge pull request #1451 from OpJePl44tsm4n/master
...
handle deprecated http2_push_preload conf for nginx >= 1.25.1
2023-12-20 22:28:48 -05:00
mattstauffer
e75f238b22
Fix code styling
2023-12-21 03:25:35 +00:00
Austin Drummond
a3a483e45c
remove date logic on renewal
2023-12-20 00:39:12 -05:00