Laravel Cloud is here! Zero-config managed infrastructure for Laravel apps. Deploy now.

Sail Ssl

ryoluo/sail-ssl image

Sail Ssl stats

Downloads
65.7K
Stars
104
Open Issues
2
Forks
10

View on GitHub →

Laravel Sail plugin to enable SSL (HTTPS) connection with Nginx.

🚢 Sail-SSL

Laravel Sail plugin to enable SSL (HTTPS) connection with Nginx.

Install

You need to setup Laravel Sail environment before using the plugin.

With local PHP / Composer:

composer require ryoluo/sail-ssl --dev
php artisan sail-ssl:install
./vendor/bin/sail up

With Sail container:

./vendor/bin/sail up -d
./vendor/bin/sail composer require ryoluo/sail-ssl --dev
./vendor/bin/sail artisan sail-ssl:install
./vendor/bin/sail down
./vendor/bin/sail up

After containers started, you can access https://localhost.

Environment variables

  • SERVER_NAME
    • Determine server_name directive in nginx.conf
    • Default: localhost
  • APP_SERVICE
    • Specify Laravel container name in docker-compose.yml
    • Default: laravel.test
  • HTTP_PORT
    • Port to forward Nginx HTTP port
    • By default, request for this port would redirect to SSL_PORT
    • Default: 8000
  • SSL_PORT
    • Port to forward Nginx HTTPS port
    • Default: 443

Configure Nginx

./nginx/templates/default.conf.template will be published.

php artisan sail-ssl:publish

Contribution

Feel free to create a PR!


Ryoluo Sail Ssl Related Articles

Laravel Migration With Schema Validation in MongoDB image

Laravel Migration With Schema Validation in MongoDB

Read article
ImapEngine is a simple API for managing mailboxes without the PHP extension image

ImapEngine is a simple API for managing mailboxes without the PHP extension

Read article
Laravel Uptime Monitor image

Laravel Uptime Monitor

Read article
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm