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.
2222For instance, to use self-signed certificates created with [ mkcert] ( https://github.com/FiloSottile/mkcert ) do as follows:
2323
24241 . Locally install ` mkcert `
25- 2 . Create the folder storing the certs:
25+ 2 . Create the folder storing the certs:
2626 ` mkdir frankenphp/certs -p `
27273 . 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 ```
39395. 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