mirror of
https://github.com/omaha-consulting/winget.pro.git
synced 2026-10-24 12:52:26 +00:00
Serve media files under httpS:// in prod
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ server {
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Protocol $scheme;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $host;
|
||||
proxy_redirect off;
|
||||
if (!-f $request_filename) {
|
||||
|
||||
+5
-1
@@ -140,4 +140,8 @@ REST_FRAMEWORK = {
|
||||
'DEFAULT_PERMISSION_CLASSES': [
|
||||
'rest_framework.permissions.IsAuthenticated'
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
# Make sure Django returns https:// URLs when invoked over https.
|
||||
USE_X_FORWARDED_HOST = True
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
Reference in New Issue
Block a user