{"id":28411815,"url":"https://github.com/ryoluo/sail-ssl","last_synced_at":"2025-09-25T21:05:10.732Z","repository":{"id":41252841,"uuid":"499577439","full_name":"ryoluo/sail-ssl","owner":"ryoluo","description":"Laravel Sail plugin to enable SSL (HTTPS) connection with Nginx.","archived":false,"fork":false,"pushed_at":"2025-02-27T13:55:37.000Z","size":54,"stargazers_count":186,"open_issues_count":2,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-30T21:29:26.025Z","etag":null,"topics":["https","laravel","laravel-sail","nginx","php","ssl"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryoluo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-03T16:24:03.000Z","updated_at":"2025-08-30T15:51:35.000Z","dependencies_parsed_at":"2025-03-25T16:01:24.004Z","dependency_job_id":"2c49aab6-1b11-4ffe-a49c-be6fe6f55fac","html_url":"https://github.com/ryoluo/sail-ssl","commit_stats":{"total_commits":24,"total_committers":3,"mean_commits":8.0,"dds":0.08333333333333337,"last_synced_commit":"d554ab5df64a54778f8f61efb31f629f71699a27"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ryoluo/sail-ssl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoluo%2Fsail-ssl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoluo%2Fsail-ssl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoluo%2Fsail-ssl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoluo%2Fsail-ssl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryoluo","download_url":"https://codeload.github.com/ryoluo/sail-ssl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoluo%2Fsail-ssl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276982657,"owners_count":25739924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["https","laravel","laravel-sail","nginx","php","ssl"],"created_at":"2025-06-02T19:15:37.779Z","updated_at":"2025-09-25T21:05:10.727Z","avatar_url":"https://github.com/ryoluo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚢 Sail-SSL\n\n![Version](https://img.shields.io/github/v/release/ryoluo/sail-ssl)\n![Downloads](https://img.shields.io/packagist/dt/ryoluo/sail-ssl)\n![License](https://img.shields.io/github/license/ryoluo/sail-ssl)\n![Test](https://img.shields.io/github/actions/workflow/status/ryoluo/sail-ssl/laravel.yml?branch=main\u0026label=test)\n\nLaravel Sail plugin to enable SSL (HTTPS) connection with Nginx.\n\n## Install\n\nYou need to setup [Laravel Sail](https://github.com/laravel/sail) environment before using the plugin.\n\n### With local PHP / Composer:\n\n```sh\ncomposer require ryoluo/sail-ssl --dev\nphp artisan sail-ssl:install\n./vendor/bin/sail up\n```\n\n### With Sail container:\n\n```sh\n./vendor/bin/sail up -d\n./vendor/bin/sail composer require ryoluo/sail-ssl --dev\n./vendor/bin/sail artisan sail-ssl:install\n./vendor/bin/sail down\n./vendor/bin/sail up\n```\n\nAfter containers started, you can access https://localhost.\n\n## Environment variables\n\n-   `SERVER_NAME`\n    -   Determine `server_name` directive in nginx.conf\n    -   Default: `localhost`\n-   `APP_SERVICE`\n    -   Specify Laravel container name in docker-compose.yml\n    -   Default: `laravel.test`\n-   `HTTP_PORT`\n    -   Port to forward Nginx HTTP port\n    -   By default, request for this port would redirect to `SSL_PORT`\n    -   Default: `8000`\n-   `SSL_PORT`\n    -   Port to forward Nginx HTTPS port\n    -   Default: `443`\n-   `SSL_DOMAIN`\n    -   The Common Name to use in the SSL certificate, e.g. `SSL_DOMAIN=*.mydomain.test`\n    -   Required to generate a valid certificate for a domain other than `localhost`\n    -   Default: `localhost`\n-   `SSL_ALT_NAME`\n    -   The Subject Alternative Name to use in the SSL certificate, e.g. `SSL_ALT_NAME=DNS:localhost,DNS:mydomain.test`\n    -   Required to generate a valid certificate for a domain other than `localhost`\n    -   Default: `DNS:localhost`\n\n## Configure Nginx\n\n`./nginx/templates/default.conf.template` will be published.\n\n```sh\nphp artisan sail-ssl:publish\n```\n\n## Contribution\n\nFeel free to create a PR!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryoluo%2Fsail-ssl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryoluo%2Fsail-ssl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryoluo%2Fsail-ssl/lists"}