1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Adding ability to create unsecure proxy.

This commit is contained in:
Mikaël Popowicz
2020-11-28 23:22:07 +01:00
parent b01556272d
commit ea777a9e94
8 changed files with 159 additions and 19 deletions

View File

@@ -183,9 +183,9 @@
/**
* Create an Nginx proxy config for the specified domain
*/
$app->command('proxy domain host', function ($domain, $host) {
$app->command('proxy domain host [--unsecure]', function ($domain, $host, $unsecure) {
Site::proxyCreate($domain, $host);
Site::proxyCreate($domain, $host, $unsecure);
Nginx::restart();
})->descriptions('Create an Nginx proxy site for the specified host. Useful for docker, mailhog etc.');