File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 225
225
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
226
226
227
227
# Storage Settings
228
+ # Use Minio settings
229
+ USE_MINIO = int (os .environ .get ("USE_MINIO" , 0 )) == 1
230
+
228
231
STORAGES = {
229
232
"staticfiles" : {
230
233
"BACKEND" : "whitenoise.storage.CompressedManifestStaticFilesStorage" ,
243
246
AWS_S3_ENDPOINT_URL = os .environ .get (
244
247
"AWS_S3_ENDPOINT_URL" , None
245
248
) or os .environ .get ("MINIO_ENDPOINT_URL" , None )
246
- if AWS_S3_ENDPOINT_URL :
249
+ if AWS_S3_ENDPOINT_URL and USE_MINIO :
247
250
parsed_url = urlparse (os .environ .get ("WEB_URL" , "http://localhost" ))
248
251
AWS_S3_CUSTOM_DOMAIN = f"{ parsed_url .netloc } /{ AWS_STORAGE_BUCKET_NAME } "
249
252
AWS_S3_URL_PROTOCOL = f"{ parsed_url .scheme } :"
307
310
ANALYTICS_SECRET_KEY = os .environ .get ("ANALYTICS_SECRET_KEY" , False )
308
311
ANALYTICS_BASE_API = os .environ .get ("ANALYTICS_BASE_API" , False )
309
312
310
- # Use Minio settings
311
- USE_MINIO = int (os .environ .get ("USE_MINIO" , 0 )) == 1
312
313
313
314
# Posthog settings
314
315
POSTHOG_API_KEY = os .environ .get ("POSTHOG_API_KEY" , False )
350
351
# Base URLs
351
352
ADMIN_BASE_URL = os .environ .get ("ADMIN_BASE_URL" , None )
352
353
SPACE_BASE_URL = os .environ .get ("SPACE_BASE_URL" , None )
353
- APP_BASE_URL = os .environ .get ("APP_BASE_URL" ) or os . environ . get ( "WEB_URL" )
354
+ APP_BASE_URL = os .environ .get ("APP_BASE_URL" )
You can’t perform that action at this time.
0 commit comments