Polyscope - The agent-first dev environment for Laravel

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!

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


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
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
The Certification of Competence for Laravel logo

The Certification of Competence for Laravel

A community-driven, proctored assessment across 4 levels designed to validate real-world Laravel knowledge, from Junior to mastery-level Artisan. Official Vue.js, Official Nuxt, Angular, React, JS certifications also available.

The Certification of Competence for Laravel
Tinkerwell logo

Tinkerwell

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

Tinkerwell
Statamic logo

Statamic

The drop-in ready Laravel CMS you’re been waiting for. Go full-stack or headless, flat file or database – it’s up to you.

Statamic
Blastup logo

Blastup

Blastup provides social media enhancement services including buying Instagram likes, followers, and views, with features like instant delivery and a variety of packages to suit different needs.

Blastup
CodeKudu logo

CodeKudu

Stand-ups, Retrospectives, and 360° Feedback for the entire team. 50% off with code LARAVELNEWS.

CodeKudu