I need some guidance on setting up ssl for Sentry (access the dashboard via https).
Are there any Sentry configuration options for achieving this without using nginx? It seems most people are using nginx but Sentry documentation doesn’t say that nginx (or something similar) is required for SSL. I already tried
SENTRY_USE_SSL=1 and individually setting the variables below, however if I set the root_url to start with https it doesn’t work (I can’t access the dashboard using my domain name). I also have an AWS load balancer in my deployment but I haven’t been able to do https to the load balancer and http to sentry ssl. Any general guidance would be much appreciated!
The code below is also confusing to me, wouldn’t
SENTRY_USE_SSL=1 imply the variable is set to true? Then why in the python file the if statement checks if it is false?
# If you're using a reverse SSL proxy, you should enable the X-Forwarded-Proto # header and set `SENTRY_USE_SSL=1` if env('SENTRY_USE_SSL', False): SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
Thanks in advance!