{"repo":"ryoluo/sail-ssl","free":true,"listed":false,"github":"https://github.com/ryoluo/sail-ssl","clone":"git clone https://github.com/ryoluo/sail-ssl.git","description":"Laravel Sail plugin to enable SSL (HTTPS) connection with Nginx.","language":"PHP","stars":192,"topics":["laravel","nginx","https","ssl","laravel-sail","php"],"license":"MIT","category":"networking-infra","readme_excerpt":"Sail-SSL A Laravel Sail plugin that enables SSL (HTTPS) for your local development environment using an Nginx reverse proxy with self-signed certificates. Table of Contents - How It Works - Requirements - Installation - Update AppServiceProvider - Trust the Certificate (Optional) - Environment Variables - Customize Nginx Configuration - Troubleshooting - Contributing - License How It Works Sail-SSL adds an Nginx container to your Docker Compose setup that acts as an SSL-terminating reverse proxy: Running the sail-ssl:install command automatically adds an Nginx service to your docker-compose.yml . On container startup, a self-signed Root CA and server certificate are generated, enabling HTTPS access out of the box. Requirements - Laravel Sail already set up in your project - Docker and Docker Compose installed Installation With Local PHP / Composer With Sail Container Once the containers are running, you can access https://localhost. Note: The sail-ssl:install command adds an Nginx service to your docker-compose.yml (or compose.yaml ). If an nginx service already exists, the command will be skipped. Update AppServiceProvider Since the application runs behind an Nginx reverse proxy that handles SSL, Laravel needs to be configured to generate HTTPS URLs. Add URL::forceScheme('https') to the boot method of your AppServiceProvider : Without this setting, Laravel may generate HTTP URLs for assets, routes, etc., even though the site is served over HTTPS. Trust the Certificate (Optio","default_branch":null,"files":null,"tree":[],"storefront":"/r/ryoluo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ryoluo/sail-ssl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}