Update STATIC_URL to hit the storage directly instead of proxy-ing
@@ -22,9 +22,7 @@ class DockerBaseSettings(CommunityDevSettings):
SLUMBER_API_HOST = 'http://web:8000'
RTD_EXTERNAL_VERSION_DOMAIN = 'org.dev.readthedocs.build'
- # storage:10000 is running the Azure Blob Storage and it's exposed to the
- # host on the same port that user's can access via localhost
- STATIC_URL = f'http://localhost:10000/devstoreaccount1/static/'
+ STATIC_URL = '/devstoreaccount1/static/'
# In the local docker environment, nginx should be trusted to set the host correctly
USE_X_FORWARDED_HOST = True
@@ -119,7 +117,7 @@ class DockerBaseSettings(CommunityDevSettings):
# Storage backend for build media artifacts (PDF, HTML, ePub, etc.)
RTD_BUILD_MEDIA_STORAGE = 'readthedocs.storage.azure_storage.AzureBuildMediaStorage'
- AZURE_STATIC_STORAGE_HOSTNAME = PRODUCTION_DOMAIN
+ AZURE_STATIC_STORAGE_HOSTNAME = 'assets.community.dev.readthedocs.io:10000'
# Storage backend for build cached environments
RTD_BUILD_ENVIRONMENT_STORAGE = 'readthedocs.storage.azure_storage.AzureBuildEnvironmentStorage'
