Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only use HTTPS for prod and dev so H2 will be used in browswer
Fixes #1322 All browsers require HTTPS for HTTP/2 requests. To enable HTTPS in development: 1. `cd apps/block_scout_web` 2. `mix phx.gen.cert blockscout blockscout.local` 3. Add `blockscout` and `blockscout.local` to your `/etc/hosts` 4. If using Chrome, Enable chrome://flags/#allow-insecure-localhost. In production, use LetsEncrypt or AWS cert infrastructure and set environment variables: * `SSL_CACERT_FILE` * `SSL_CERT_FILE` * `SSL_DHPARAM_FILE` * `SSL_KEY_FILE` https://blog.progressplum.app/ssl-migration-from-nginx-to-cowboy-2-in-phoenix-1-4/ is available as a guide if fronting with nginx.
- Loading branch information
1 parent
815ae97
commit c0ddf59
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,6 @@ screenshots/ | |
|
||
# osx | ||
.DS_Store | ||
|
||
# mix phx.gen.cert self-signed certs for dev | ||
/apps/block_scout_web/priv/cert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters