- Notifications
You must be signed in to change notification settings - Fork0
Enable HTTPS on your local Laravel sail powered apps. 🔐
License
assurdeal/laravel-sail-https
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This package allows you to use HTTPS in your Laravel Sail development environment.
You can install the package via composer:
composer require assurdeal/sail-https --dev
You can publish the config file with:
php artisan vendor:publish --tag="sail-https-config"Add your authorized domains to your.env file:
SAIL_HTTPS_AUTHORIZED_DOMAINS=example.text,example2.test
Add the following to yourdocker-compose.yml file:
volumes:sail-caddy:driver:local
### Caddy Server reverse proxy ############################caddy:image:caddy:latestrestart:unless-stoppedports: -'${APP_SSL_PORT:-443}:443'volumes: -'./vendor/assurdeal/sail-https/.docker/caddy/Caddyfile:/etc/caddy/Caddyfile' -sail-caddy:/data -sail-caddy:/confignetworks: -sail
First get the Caddy container ID
docker ps| grep caddyThen copy the Certificate from the Container
docker cp {container_id}:/config/caddy/pki/authorities/local/root.crt~/DesktopFinally, open up "Keychain Access.app" and drag and drop the certificate into the "login" keychain. Open thecertificate (it should be called something like "Caddy Local Authority") and configure it to "Always Trust".
To add, use the command:certutil -addstore -f "ROOT" root.crt
To remove, use the command:certutil -delstore "ROOT" serial-number-hex
- To add:
- Copy your CA to dir
/usr/local/share/ca-certificates/ - Use command:
sudo cp root.crt /usr/local/share/ca-certificates/root.crt - Update the CA store:
sudo update-ca-certificates
- Copy your CA to dir
- To remove:
- Remove your CA.
- Update the CA store:
sudo update-ca-certificates --fresh
Note: Restart Kerio Connect to reload the certificates in the 32-bit versions or Debian 7.
- Install the ca-certificates package:
yum install ca-certificates - Enable the dynamic CA configuration feature:
update-ca-trust force-enable - Add it as a new file to /etc/pki/ca-trust/source/anchors/:
cp root.crt /etc/pki/ca-trust/source/anchors/ - Use command:
update-ca-trust extract
Append your trusted certificate to file /etc/pki/tls/certs/ca-bundle.crt
cat root.crt >>/etc/pki/tls/certs/ca-bundle.crt
Note: Restart Kerio Connect to reload the certificates in the 32-bit version.
composertestBig Thanks to all developers who worked hard to create something amazing!
Twitter:@PercyMamedy
GitHub:percymamedy
The MIT License (MIT). Please seeLicense File for more information.
About
Enable HTTPS on your local Laravel sail powered apps. 🔐
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.