File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ But sometimes you may prefer using custom certificates.
22
22
For instance, to use self-signed certificates created with [ mkcert] ( https://github.com/FiloSottile/mkcert ) do as follows:
23
23
24
24
1 . Locally install ` mkcert `
25
- 2 . Create the folder storing the certs:
25
+ 2 . Create the folder storing the certs:
26
26
` mkdir frankenphp/certs -p `
27
27
3 . Generate the certificates for your local host (example: "server-name.localhost"):
28
28
` 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
37
37
- ./public:/app/public:ro
38
38
```
39
39
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.
You can’t perform that action at this time.
0 commit comments