1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00
Commit Graph

761 Commits

Author SHA1 Message Date
Matt Stauffer
93d1632b37 Merge pull request #851 from drbyte/patch-3
Add detailed valet uninstall instructions
2019-12-01 13:08:18 -05:00
Matt Stauffer
8eea03f6a2 Merge pull request #835 from jrbarnard/bugfix/parked-merge-overwrite
Do not show sites in parked if they would not be served
2019-12-01 12:57:12 -05:00
Chris Brown
65b0c6aae6 Add detailed uninstall instructions
Previously `valet uninstall` would just shutdown the `nginx` service.

This PR also stops `PHP` and gives a number of instructions on how to do a (nearly) clean uninstall of most Valet dependencies.
And also some troubleshooting tips.
2019-12-01 02:05:08 -05:00
Chris Brown
36de050d32 Set robots nofollow for all valet share traffic
Replaces and closes #575 ... for reasons described there.
2019-11-30 16:55:48 -05:00
Chris Brown
d6f06045fc Add --all parameter to valet unsecure command
This PR allows passing `--all` to `valet unsecure` to have it remove all certificates from all Valet configs AND from the MacOS Keychain.
This effectively cleans up certificate fragments or broken configs, and can help with troubleshooting.
2019-11-30 16:38:48 -05:00
Chris Brown
cfa8c216fa Include dnsmasq in valet start/restart command
While it's rare that the dnsmasq won't be started, it feels incomplete to not include the service when starting/restarting valet, since valet depends on it.
2019-11-30 16:34:08 -05:00
Chris Brown
e046fff6f6 Display nginx config errors on start
While since #268 valet has been checking nginx configs for errors when starting/restarting, the captured errors are never displayed if there is a failure because it's being run using `quietly()`. 
This PR causes the errors to pass through to the console so we can more readily understand why nginx may not be starting or not serving properly.
2019-11-30 16:31:18 -05:00
Chris Brown
e71906616c Add comment to consider running composer global update
When switching to older PHP versions there may be a composer package dependency conflict. This PR adds a note to consider running `composer global update` to update those dependencies. It's only a comment since not all changes in PHP version will require running the update.

Fixes #822
2019-11-30 16:07:38 -05:00
Matt Stauffer
7785fc870e Bump version 2019-11-30 14:19:48 -05:00
lee
bfd2f3ea5d Updated SUPPORTED_PHP_VERSIONS and LATEST_PHP_VERSION constants to 7.4 2019-11-29 23:06:20 +01:00
Matt Stauffer
879c22f894 Version bump 2019-11-21 16:38:23 -05:00
Chris Brown
e8d49c42bf Symfony/Process 4.4.0 compatibility
Process `4.4.0` changed command-line parsing by being more aggressive with substitutions, causing our intended literal `"$NF"` to throw an exception.

https://github.com/symfony/process/compare/v4.3.8...v4.4.0#diff-9a01fc0e340da4c3f1e4a16029a63977R1644-R1653
2019-11-21 12:04:13 -05:00
Matt Stauffer
12f75fc2a8 Bump version 2019-10-29 08:31:35 -04:00
Matt Stauffer
705bcd3d9c Merge pull request #834 from jrbarnard/bugfix/parked-showing-files
Ignore parked paths that are not directories when getting sites
2019-10-29 08:30:52 -04:00
James Barnard
afedf5be57 Do not show sites in parked if they would not be served (parked after a site with the same name, or an existing linked site) 2019-10-21 23:18:38 +01:00
James Barnard
cb8d971097 Ignore parked paths that are not directory when getting parked sites 2019-10-21 22:56:10 +01:00
Bálint Szekeres
9d7214842b fastcgi_split_path_info with location regex fix 2019-10-17 16:12:21 +02:00
Matt Stauffer
7011629b41 Bump version 2019-10-10 20:49:47 -04:00
James Barnard
b16559a450 Merge branch 'master' into feature/links-with-parked 2019-10-04 07:30:35 +01:00
Matt Stauffer
beda122db0 Bump again 2019-10-03 13:37:43 -04:00
Matt Stauffer
4b3ccda838 Merge pull request #825 from jrbarnard/bugfix/823
Check for tld on end of certificate path to support multi segment tld's
2019-10-03 13:26:56 -04:00
Matt Stauffer
b7867e97ce Bump version 2019-10-03 13:22:03 -04:00
James Barnard
921776ff11 Deprecate getLinks 2019-10-02 15:53:15 +01:00
James Barnard
b3ef3b1367 Fix stripe -> strip typo 2019-10-02 15:10:46 +01:00
James Barnard
e5dceb2bc5 Check for tld on end of certificate file name to support multi segment tld's 2019-10-02 13:56:51 +01:00
James Barnard
9d4126856d Add 'parked' command to show all sites which have been parked using valet park 'path' 2019-10-02 13:31:06 +01:00
James Barnard
185695b396 Fix #708. Use stopRunning instead of stop to only stop running php services 2019-09-27 10:21:11 +01:00
Matt Stauffer
eb0f03869c Version bump 2019-09-10 20:33:44 -04:00
Matt Stauffer
7deb886b58 Revert "Increase nginx buffer sizes in dev"
This reverts commit 536e59990b.
2019-09-10 20:32:30 -04:00
Matt Stauffer
6170995abb Merge pull request #819 from drbyte/forge-matchup2-logs
Turn off logging of hits to robots.txt and favicon.ico
2019-09-10 16:20:56 -04:00
Matt Stauffer
0072cc2f2e Preemptive version bump 2019-09-10 16:20:26 -04:00
Matt Stauffer
e419cbdf5b Merge pull request #818 from drbyte/forge-matchup1
Allow for longer domain names
2019-09-10 16:19:56 -04:00
Matt Stauffer
1ebb212413 Merge pull request #813 from drbyte/larger-buffers
Increase nginx buffer sizes in dev
2019-09-10 16:19:08 -04:00
Chris Brown
536e59990b Increase nginx buffer sizes in dev
These larger buffer sizes accommodate larger requests that are often complained about in Valet support issues.
These updates are inspired by common configs in Homestead.

I've been using these in my local Valet config for 4+ months, without any negative side-effects.

Edit: commented-out several, and made consistent with Forge defaults
2019-09-09 17:42:00 -04:00
Chris Brown
d269621e98 Turn off logging of hits to robots.txt and favicon.ico
A long-requested adjustment to Valet is to bypass the logging of robots.txt and favicon.ico hits. Particularly when keeping an Ngrok session alive.

This update is consistent with default logging settings in Forge.
2019-09-09 17:29:48 -04:00
Chris Brown
68e1ee6491 Add corresponding setting, also from Forge.
Ref: http://nginx.org/en/docs/hash.html
2019-09-09 17:24:17 -04:00
Chris Brown
0563408bc7 Allow for longer domain names
Increases domain name length support in Valet per #543 and #808
This is the same setting used in Forge
2019-09-09 17:18:37 -04:00
Matt Stauffer
52a168eb96 Bump version to 2.4.0 2019-09-09 15:58:01 -04:00
Matt Stauffer
9422e70798 Merge pull request #573 from corneliusio/master
Allow http2 server push for secured domains [BREAKING]
2019-09-09 13:54:38 -04:00
Matt Stauffer
cdefc2e3c0 Merge pull request #738 from marflow/master
Update StatamicValetDriver.php with locale 'zh'
2019-09-09 08:30:15 -04:00
Chris Brown
fcd73d73bc Improve security by listening on 127.0.0.1 only
Fixes #772

I've been using this config change since Aug 17, 2019, without any negative side-effects.
All Valet services continue to work properly, and Valet Share still works just as expected.

If someone were to have a challenge with it, there's an easy downgrade: just remove the `127.0.0.1:` from these files, and run `valet tld test` to rebuild the individual site configs. Or just manually edit the `~/.config/valet/Nginx` site file manually.
2019-09-07 17:44:19 -04:00
Matt Stauffer
b14ce74087 Merge pull request #793 from nick-f/add-upgrade-instructions
Add link to upgrade instructions in outdated version error message
2019-08-19 14:39:46 -04:00
Matt Allan
76a0c3222e Fix incorrect comments 2019-08-07 11:11:51 -04:00
Nick Freeland
e7df243d0f Add link to upgrade instructions in outdated error
Previously when checking if the Valet version in use was the latest,
you'd have to go to Valet repo on GitHub, find out that all the docs
were on laravel.com, go there, find the upgrade instructions, and then
upgrade.

This can be simplified by giving the user the option to view the link.
2019-07-09 18:43:04 +10:00
Pete Cooper
79661fa2b8 Fix example log command 2019-06-05 14:55:23 +01:00
Matt Stauffer
a694efc4c5 Pre-emptive version bump 2019-05-14 17:47:29 -04:00
Matt Stauffer
32cf547b47 Replace sortKeys with native ksort to avoid bumping Collect dependency 2019-05-14 17:42:43 -04:00
Matt Stauffer
64c79ab902 Pre-emptive version bump to avoid the shame 2019-05-14 17:29:51 -04:00
Matt Stauffer
c5b9c1926e Version bump of shame 2019-05-14 17:28:34 -04:00
Chris Brown
fee6fec141 Fix "sudo: sorry, you are not allowed to preserve the environment" messages
If you've previously run `valet trust` to allow valet to run without specifying `sudo` repeatedly or entering your password with various valet commands, recent updates to MacOS may give you a `sudo: sorry, you are not allowed to preserve the environment` response when trying to run those `valet` commands.

The fix is in updating the sudoers entry that `valet trust` creates.

This PR tells valet how to update the sudoers entry so that this message doesn't continue.

YOU WILL NEED TO RE-RUN `valet trust` IF YOU HAD PREVIOUSLY RUN IT, after installing this update, in order for this code change to have any effect.

(Technical explanation: the sudoers protections have become stricter, so we have to be more explicit that we do indeed want environment variables to flow through to the sudo user's environment when using valet via sudoers entries.)
2019-05-14 16:55:27 -04:00