|
74 | 74 | ILMOITIN_QUEUE_NOTIFICATIONS=(bool, True), |
75 | 75 | STORAGES_DEFAULT_BACKEND=(str, "django.core.files.storage.FileSystemStorage"), |
76 | 76 | AZURE_ACCOUNT_NAME=(str, ""), |
77 | | - AZURE_ACCOUNT_KEY=(str, ""), |
| 77 | + AZURE_BLOB_STORAGE_SAS_TOKEN=(str, ""), |
78 | 78 | AZURE_CONTAINER=(str, ""), |
79 | 79 | AZURE_URL_EXPIRATION_SECS=(str, None), |
80 | 80 | ENABLE_GRAPHIQL=(bool, False), |
@@ -252,15 +252,13 @@ def sentry_before_send(event: Event, hint: Hint): |
252 | 252 | MEDIA_URL = env("MEDIA_URL") |
253 | 253 | STATIC_URL = env("STATIC_URL") |
254 | 254 |
|
255 | | -# For staging env, we use Google Cloud Storage |
256 | 255 | STORAGES_DEFAULT_BACKEND = env("STORAGES_DEFAULT_BACKEND") |
257 | 256 |
|
258 | | -# For prod, it's Azure Storage |
259 | | -if STORAGES_DEFAULT_BACKEND == "storages.backends.azure_storage.AzureStorage": |
| 257 | +if STORAGES_DEFAULT_BACKEND == "utils.storage.AzureStorageWithoutQuerystringAuth": |
| 258 | + AZURE_SAS_TOKEN = env("AZURE_BLOB_STORAGE_SAS_TOKEN") |
260 | 259 | AZURE_ACCOUNT_NAME = env("AZURE_ACCOUNT_NAME") |
261 | 260 | AZURE_CONTAINER = env("AZURE_CONTAINER") |
262 | 261 | AZURE_URL_EXPIRATION_SECS = env("AZURE_URL_EXPIRATION_SECS") |
263 | | - AZURE_ACCOUNT_KEY = env("AZURE_ACCOUNT_KEY") |
264 | 262 |
|
265 | 263 | STORAGES = { |
266 | 264 | "default": { |
|
0 commit comments