docs(tls.md): add instructions about disabling HTTPS

This commit is contained in:
JH 2024-03-19 16:56:10 +01:00 committed by Maxime Helias
parent b6b0572cba
commit e022f7333d

View File

@ -37,3 +37,16 @@ For instance, to use self-signed certificates created with [mkcert](https://gith
- ./public:/app/public:ro
```
5. Restart your `php` service
## Disabling HTTPS for Local Development
To disable HTTPS, configure your environment to use HTTP by setting the following variables and starting the project with this command:
```bash
SERVER_NAME=http://localhost \
MERCURE_PUBLIC_URL=http://localhost/.well-known/mercure \
TRUSTED_HOSTS='^localhost|php$' \
docker compose up --pull always -d --wait
```
Ensure your application is accessible over HTTP by visiting `http://localhost` in your web browser.