Статья 11 111

Securing Sites With TLS

By default, Valet serves sites over plain HTTP. However, if you would like to serve a site over encrypted TLS using HTTP/2, use the secure command. For example, if your site is being served by Valet on the laravel.dev domain, you should run the following command to secure it:

valet secure laravel

To «unsecure» a site and revert back to serving its traffic over plain HTTP, use the unsecurecommand. Like the secure command, this command accepts the host name that you wish to unsecure:

valet unsecure laravel