Skip to content

Commit e022f73

Browse files
JHmaxhelias
authored andcommitted
docs(tls.md): add instructions about disabling HTTPS
1 parent b6b0572 commit e022f73

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/tls.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ But sometimes you may prefer using custom certificates.
2222
For instance, to use self-signed certificates created with [mkcert](https://github.com/FiloSottile/mkcert) do as follows:
2323

2424
1. Locally install `mkcert`
25-
2. Create the folder storing the certs:
25+
2. Create the folder storing the certs:
2626
`mkdir frankenphp/certs -p`
2727
3. Generate the certificates for your local host (example: "server-name.localhost"):
2828
`mkcert -cert-file frankenphp/certs/tls.pem -key-file frankenphp/certs/tls.key "server-name.localhost"`
@@ -37,3 +37,16 @@ For instance, to use self-signed certificates created with [mkcert](https://gith
3737
- ./public:/app/public:ro
3838
```
3939
5. Restart your `php` service
40+
41+
## Disabling HTTPS for Local Development
42+
43+
To disable HTTPS, configure your environment to use HTTP by setting the following variables and starting the project with this command:
44+
45+
```bash
46+
SERVER_NAME=http://localhost \
47+
MERCURE_PUBLIC_URL=http://localhost/.well-known/mercure \
48+
TRUSTED_HOSTS='^localhost|php$' \
49+
docker compose up --pull always -d --wait
50+
```
51+
52+
Ensure your application is accessible over HTTP by visiting `http://localhost` in your web browser.

0 commit comments

Comments
 (0)