Skip to content

Commit

Permalink
admin_panel: redirect https for production social auth
Browse files Browse the repository at this point in the history
  • Loading branch information
laggron42 committed Jan 21, 2025
1 parent db3093d commit f4adffe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin_panel/admin_panel/settings/production.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

DEBUG = False

# Force python-social-auth (Discord OAuth2) to use https redirection
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True

# Generate a long random string here for your secret key. It is important to keep it secret,
# leaking it could allow attackers to do privilege escalation.
# A good way to generate a long key is to run "pwgen 64 1" on Linux
Expand Down

0 comments on commit f4adffe

Please sign in to comment.