Skip to content

Commit d0e9cf6

Browse files
committed
Update STATIC_URL to hit the storage directly instead of proxy-ing
1 parent ae59b89 commit d0e9cf6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

readthedocs/settings/docker_compose.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ class DockerBaseSettings(CommunityDevSettings):
2222
SLUMBER_API_HOST = 'http://web:8000'
2323
RTD_EXTERNAL_VERSION_DOMAIN = 'org.dev.readthedocs.build'
2424

25-
# storage:10000 is running the Azure Blob Storage and it's exposed to the
26-
# host on the same port that user's can access via localhost
27-
STATIC_URL = f'http://localhost:10000/devstoreaccount1/static/'
25+
STATIC_URL = '/devstoreaccount1/static/'
2826

2927
# In the local docker environment, nginx should be trusted to set the host correctly
3028
USE_X_FORWARDED_HOST = True
@@ -119,7 +117,7 @@ def DATABASES(self): # noqa
119117

120118
# Storage backend for build media artifacts (PDF, HTML, ePub, etc.)
121119
RTD_BUILD_MEDIA_STORAGE = 'readthedocs.storage.azure_storage.AzureBuildMediaStorage'
122-
AZURE_STATIC_STORAGE_HOSTNAME = PRODUCTION_DOMAIN
120+
AZURE_STATIC_STORAGE_HOSTNAME = 'assets.community.dev.readthedocs.io:10000'
123121

124122
# Storage backend for build cached environments
125123
RTD_BUILD_ENVIRONMENT_STORAGE = 'readthedocs.storage.azure_storage.AzureBuildEnvironmentStorage'

0 commit comments

Comments
 (0)