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

115 Commits

Author SHA1 Message Date
Matt Stauffer
8246ee6319 Merge pull request #1238 from jjpmann/feature/custom-site-stubs
use getStub to allow custom stub files
2022-12-01 20:25:41 -05:00
Matt Stauffer
8fb9b8e738 Merge pull request #1305 from ashleyshenton/fix/retain-secure-proxies
fix: retain secure proxies
2022-11-30 22:08:02 -05:00
Ashley Shenton
566729b603 fix: check for the secure proxy stub when resecuring with a fresh config 2022-11-29 13:27:58 +00:00
Erik | Sobit
3dbecab9dd added missing ) 2022-11-11 09:42:06 +01:00
Erik Dohmen
753f2db745 Update cli/Valet/Site.php
Co-authored-by: Matt Stauffer <mattstauffer@users.noreply.github.com>
2022-11-11 09:37:38 +01:00
Erik | Sobit
2d429c353d solution for only remove the tld if it is at the end of the site name
o check if tld is at the end of the site name and if so remove it
o added corresponding test
2022-11-02 11:53:04 +01:00
Jerry Price
e668e77f3d Merge branch 'master' into feature/custom-site-stubs 2022-07-08 09:21:51 -04:00
Matt Stauffer
70969872cf Roll back #1088 2022-04-15 11:51:34 -04:00
Matt Stauffer
99cf3d4647 Merge branch 'feature/support-parked-domains' of https://github.com/antonioribeiro/valet into antonioribeiro-feature/support-parked-domains 2022-04-13 23:05:38 -04:00
Jerry Price
021a4d1a5c use getStub to allow custom stub files 2022-04-13 10:50:41 -04:00
Michael Lehmkuhl
bc68b6a4b7 Clean up coding style 2022-04-03 18:47:37 -05:00
Michael Lehmkuhl
30af32d856 Clean up coding style 2022-04-03 18:44:56 -05:00
Michael Lehmkuhl
315af8904a Add PHP version to valet links output table 2022-04-03 18:35:51 -05:00
Matt Stauffer
b1ff8deff0 Merge branch 'master' into feature/support-parked-domains 2022-03-31 10:52:18 -04:00
Nasir Uddin Nobin
d198d7739c wip - refactor with valetphprc version (#10) 2022-03-30 03:48:03 +06:00
Matt Stauffer
29b2f45719 Add --site to isolate and unisolate commands
- Add --site to isolate
- Add --site to unisolate
- Refactor some tests
- Update Site@getSiteUrl to throw an exception instead of returning false
- Fix a few minor typos/grammatical issues
2022-03-21 01:25:23 -04:00
Matt Stauffer
c8e70396e4 Specifically look for cert files in secured() method.
Fixes #1210
2022-03-17 13:08:22 -04:00
Matt Stauffer
383aa62137 Change magic isolation config string to "ISOLATED_PHP_VERSION"
Co-Authored-By: Jacob Baker-Kretzmar <18192441+bakerkretzmar@users.noreply.github.com>
2022-03-14 14:40:45 -04:00
Matt Stauffer
3cdb7c78f4 Drop space before colon in magic isolation string 2022-03-14 12:42:11 -04:00
Matt Stauffer
51742b3795 Make primary valet.sock a symlink to an existing version 2022-03-12 23:29:01 -05:00
Matt Stauffer
33c797f9ef Drop need to pass sock to isolate command 2022-03-12 00:20:40 -05:00
Matt Stauffer
eefc06b07f Drop PHP 5.6; extract site-specific PHP version isolation to its own commands 2022-03-12 00:05:51 -05:00
Nasir Uddin Nobin
49ca4ae467 Apply suggestions from code review
Co-authored-by: Matt Stauffer <mattstauffer@users.noreply.github.com>
2022-02-16 11:21:41 +06:00
Nasir Uddin Nobin
5c1043776e Apply refactor & cleanup from the code review 2022-02-15 16:44:29 +06:00
NasirNobin
8de8d9bb26 Stop unused PHP versions 2022-02-15 04:49:03 +06:00
Nasir Uddin Nobin
c247dc9709 Add Valet PHP isolation remover option & apply more suggestions from code review 2022-02-15 02:38:46 +06:00
Nasir Uddin Nobin
acf190c57c Apply suggestions from code review
Co-authored-by: Matt Stauffer <mattstauffer@users.noreply.github.com>
2022-02-15 02:05:48 +06:00
NasirNobin
37b4af4113 Multiple/Parallel PHP Version Support for Valet 2022-02-06 13:56:35 +06:00
Jakob Linskeseder
1f15953c73 Avoid expiring of root certificate authority
Resolves #1103
2021-12-19 21:10:13 +01:00
Richard Torenvliet
4283dae3cf Add expireIn= option and use in the openssl command 2021-12-13 15:16:53 +01:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
Antonio Carlos Ribeiro
a13832c95b Fix precedence bug 2021-08-29 13:50:25 +02:00
Antonio Ribeiro
df1a95c386 Add support for parked domains to some commands 2021-08-27 17:09:01 +02:00
Chris Brown
5d8a94fa54 Fix comment typo 2021-08-15 17:10:17 -04:00
Mikaël Popowicz
01f4b582e6 ♻️ Refactoring proxy command. Proxy is not secured by default. 2021-04-30 14:31:55 +02:00
Mikaël Popowicz
7fdcdd3544 🚚 Use insecure instead of unsecure. 2021-04-26 18:00:33 +02:00
Mikaël Popowicz
3098f5ff0a Merge branch 'master' into feature/unsecure-proxy
# Conflicts:
#	cli/Valet/Site.php
#	cli/stubs/proxy.valet.conf
2021-04-23 22:01:16 +02:00
Mikaël Popowicz
3ecf64d339 💡 Updating addLoopbackAlias phpDoc. 2021-02-24 09:25:40 +01:00
Mikaël Popowicz
5f46ac4e23 Adding uninstallLoopback. 2021-02-24 00:27:13 +01:00
Mikaël Popowicz
2f6dc53e2d 💬 Updating aliasLoopback phpDoc. 2021-02-24 00:04:05 +01:00
Mikaël Popowicz
a0eeceb13c ♻️ Refactoring resecureForNewConfiguration conditions. 2021-02-24 00:02:29 +01:00
Mikaël Popowicz
a876175c6a ♻️ Refactoring resecureForNew* methods to resecureForNewConfiguration. 2021-02-23 22:32:50 +01:00
Mikaël Popowicz
0c0ab726c0 🐛 Fixing Nginx configuration.
 Adding alias generation and launch daemon generation.
2021-02-22 18:43:39 +01:00
Mikaël Popowicz
2d5ee9d7cc Add loopback command. 2021-02-21 23:21:12 +01:00
Mikaël Popowicz
2ba9f6c977 Updating put phpdoc. 2020-11-28 23:34:26 +01:00
Mikaël Popowicz
ea777a9e94 Adding ability to create unsecure proxy. 2020-11-28 23:22:07 +01:00
Chris Brown
2c03a07a71 Fix proxy config rewrite done during a tld change
(it wasn't rewriting all variants of the old tld, thus leaving them (and nginx) broken).
2020-11-05 19:05:53 -05:00
Chris Brown
d9a05cc27e Fix file_get_contents() error in tld command
When we added the `proxy` feature in https://github.com/laravel/valet/pull/913 we inadvertently broke the `tld` command.
It was concatenating old+new tld when searching for existing configs, thus it couldn't find the correct file, which triggered the reported error.

Fixes #984

This PR fixes the lookup by allowing the correct intended lookup tld to be passed in. It also checks that the file exists before trying to read it.
2020-11-05 19:04:55 -05:00
Beau Simensen
1cd3d23804 Update cli/Valet/Site.php
Co-Authored-By: Matt Stauffer <mattstauffer@users.noreply.github.com>
2020-04-28 16:35:19 -05:00
Beau Simensen
9f607ba998 Test the new Proxies features
Updated the `proxies` method to return the URL + .tld
as the rendered output wasn't exactly what one would
expect. While not critical, it was not consistent.

Refactored some of the Site class to aid in testing using
a fake instead of relying on a ton of mocking.

The Site fake has support for both using `tests/output`
as well as named fixtures (`tests/fixtures/Proxies`).

Testing for certificate I/O is pretty whack, but this is
the best I could come up with that would still ensure
the certificate stuff was getting called without
actually requiring `sudo` to run phpunit.

Replaced instances referring directly to `VALET_HOME_PATH`
with calls to the new `valetHomePath()`. This method
is taken over in the fake Site implementation so
that everything runs the same using the fake
Site without having to change other
assumptions.

Updated several "path" methods (and many of their usages)
to take the "thing" you are looking for so you can
either get the path to the type of "thing" you
are looking for or the direct path to the
specific "thing" you are looking for.

Examples:

```
// ~/.config/valet/Nginx
$site->nginxPath();

// ~/.config/valet/Nginx/some-site.com.test
$site->nginxPath('some-site.com.test');
```

Made some other tests related to the existence of `Sites`
directory that resulted in updating the mocks for
many of the other tests.

All in all, it should make other aspects of the Site class
handle things more gracefully if `Sites` doesn't exist.
2020-04-28 11:47:25 -05:00