Skip to content

Commit

Permalink
refactor: Renamed doc based on review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
royanger committed Dec 18, 2024
1 parent 7bdfaee commit 8ab7929
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Deploying a Clerk app to a web server or with Docker
description: Learn how to deploy a Clerk app to a web server using servers like nginx or Caddy, or using Docker
title: Deploying a Clerk app behind a proxy
description: Learn how to deploy a Clerk app to a web server using proxies and reverse proxies like nginx or Caddy, or using Docker
---

When deploying a Clerk app to a web server or container, you may need to proxy two headers for Clerk to work correctly. The two headers that you must forward are:
When deploying a Clerk app beind a proxy, you may need to proxy two headers for Clerk to work correctly. The two headers that you must forward are:

- `X-Forwarded-Host`
- `X-Forwarded-Proto`
Expand Down Expand Up @@ -36,6 +36,8 @@ export default clerkMiddleware(

## Non-exhaustive list

The following is a non-exhaustive list that includes some of the hosts and servers that will require this proxying of headers.

- [nginx](https://nginx.org/en/)
- [Caddy](https://caddyserver.com/)
- [Docker](https://www.docker.com/)
Expand Down
4 changes: 2 additions & 2 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1411,8 +1411,8 @@
"href": "/docs/deployments/deploy-to-vercel"
},
{
"title": "Deploy to a web server or container",
"href": "/docs/deployments/deploy-to-a-web-server"
"title": "Deploying behind a proxy",
"href": "/docs/deployments/deploying-behind-a-proxy"
},
{
"title": "Set up a staging environment",
Expand Down

0 comments on commit 8ab7929

Please sign in to comment.