From 0c109439b382455e3aaa9f25367c49c34c192cb6 Mon Sep 17 00:00:00 2001 From: Alexander Tarasov Date: Mon, 29 Apr 2024 20:05:38 +0200 Subject: [PATCH] feat: add NGINX as a reverse proxy example (#1257) --- src/docs/self-hosted/reverse-proxy.mdx | 57 ++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 4 deletions(-) diff --git a/src/docs/self-hosted/reverse-proxy.mdx b/src/docs/self-hosted/reverse-proxy.mdx index b48551f2bc..a77ed7fb0a 100644 --- a/src/docs/self-hosted/reverse-proxy.mdx +++ b/src/docs/self-hosted/reverse-proxy.mdx @@ -2,7 +2,7 @@ title: 'Self-Hosted Reverse Proxy' --- -Adding a reverse proxy in front of your Sentry deployment is strongly recommended for one big reason: you can fine tune every configuration to fit your current setup. A dedicated reverse proxy that does SSL/TLS termination that also forwards the client IP address as Docker Compose internal network (as this is [close to impossible to get otherwise)](https://github.com/getsentry/self-hosted/issues/554) would give you the best Sentry experience. +Adding a reverse proxy in front of your Sentry deployment is strongly recommended for one big reason: you can fine tune every configuration to fit your current setup. A dedicated reverse proxy that does SSL/TLS termination that also forwards the client IP address as Docker Compose internal network (as this is [close to impossible to get otherwise](https://github.com/getsentry/self-hosted/issues/554)) would give you the best Sentry experience. Once you have setup a reverse proxy to your Sentry instance, you should modify the `system.url-prefix` in the `config.yml` file to match your new URL and protocol. You should also update the SSL/TLS section in the `sentry/sentry.conf.py` script, otherwise you may get CSRF-related errors when performing certain actions such as configuring integrations. @@ -36,15 +36,64 @@ Endpoint for health checks is available on `/_health/` endpoint using HTTP proto ## Reverse Proxy Examples - ### Caddy