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

Commit 3532d24

Browse files
committed
Merge pull request #8 from russelldavis/readme-update
Add config instructions for HTTPS and reverse proxies
2 parents e5a86a8 + 6fceb87 commit 3532d24

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
@@ -22,6 +22,17 @@ Ensure you've configured GitHub auth in Sentry::
2222
GITHUB_API_SECRET = 'GitHub Application Client Secret'
2323
GITHUB_EXTENDED_PERMISSIONS = ['repo']
2424

25+
If the callback URL you've registered with Github uses HTTPS, you'll need this in your config::
26+
27+
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
28+
29+
If your server is behind a reverse proxy, you'll need to enable the X-Forwarded-Proto
30+
and X-Forwarded-Host headers, and use this config::
31+
32+
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
33+
USE_X_FORWARDED_HOST = True
34+
35+
2536
Associate your account with GitHub (if you haven't already) via Account -> Identities. If you had
2637
already associated your account, and you hadn't configured extended permissions, you'll need to
2738
disconnect and reconnect the account.

0 commit comments

Comments
 (0)