Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.

Commit f1c77f2

Browse files
committed
Add config instructions for HTTPS and reverse proxies
1 parent d282174 commit f1c77f2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ Ensure you've configured GitHub auth in Sentry::
1919
GITHUB_API_SECRET = '
2020
GITHUB_EXTENDED_PERMISSIONS = ['repo']
2121

22+
If your Sentry server is using HTTPS, you'll need this in your config::
23+
24+
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
25+
26+
If your server is behind a reverse proxy, you'll need to enable the X-Forwarded-Proto
27+
and X-Forwarded-Host headers, and use this config::
28+
29+
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
30+
USE_X_FORWARDED_HOST = True
31+
32+
2233
Associate your account with GitHub (if you haven't already) via Account -> Identities. If you had
2334
already associated your account, and you hadn't configured extended permissions, you'll need to
2435
disconnect and reconnect the account.

0 commit comments

Comments
 (0)