From 6b5a61cff635d9c53bf6e304adb862f51c0bd812 Mon Sep 17 00:00:00 2001 From: Dien Vu Date: Mon, 18 May 2020 15:26:02 +0700 Subject: [PATCH] docs: a sample Caddyfile for Caddy 2 to enable https section (#4710) --- CHANGELOG.md | 1 + docs/graphql/manual/deployment/enable-https.rst | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca43f40370c..509f62b9429 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,7 @@ Read more about the session argument for computed fields in the [docs](https://h - docs: add section on actions vs. remote schemas to actions documentation (#4284) - docs: fix wrong info about excluding scheme in CORS config (#4685) - docs: add docs page on query performance (close #2316) (#3693) +- docs: add a sample Caddyfile for Caddy 2 in enable-https section (#4710) ## `v1.2.0` diff --git a/docs/graphql/manual/deployment/enable-https.rst b/docs/graphql/manual/deployment/enable-https.rst index 94eebe141f4..442a3115026 100644 --- a/docs/graphql/manual/deployment/enable-https.rst +++ b/docs/graphql/manual/deployment/enable-https.rst @@ -65,6 +65,14 @@ Here is a sample ``Caddyfile`` to proxy requests to Hasura: websocket } +The sample ``Caddyfile`` for Caddy 2: + +.. code-block:: bash + + hasura.my-domain.com { + reverse_proxy localhost:8080 + } + Caddy has SSL provisioning built-in with Let's Encrypt. You can find the docs at `Caddy website `__.