Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163586
D1391.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D1391.id.diff
View Options
diff --git a/docker-compose.yml b/docker-compose.yml
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -208,11 +208,13 @@
- swh-idx-storage
environment:
VERBOSITY: 3
- DJANGO_SETTINGS_MODULE: swh.web.settings.development
+ DJANGO_SETTINGS_MODULE: localsettings
SWH_CONFIG_FILENAME: /web.yml
- PYTHONPATH: /tmp/swh
+ PYTHONPATH: /srv/softwareheritage
+ entrypoint: /entrypoint.sh
volumes:
- "./conf/web.yml:/web.yml:ro"
+ - "./services/swh-web/settings.py:/srv/softwareheritage/localsettings.py:ro"
swh-deposit-db:
image: postgres:11
diff --git a/services/swh-web/settings.py b/services/swh-web/settings.py
new file mode 100644
--- /dev/null
+++ b/services/swh-web/settings.py
@@ -0,0 +1,12 @@
+import os
+from django.core.cache import cache
+
+from swh.web.settings.common import * # noqa
+MIDDLEWARE += ['swh.web.common.middlewares.HtmlPrettifyMiddleware']
+
+AUTH_PASSWORD_VALIDATORS = [] # disable any pwd validation mechanism
+
+DATABASES['default']['NAME'] = os.path.join(
+ os.environ.get('HOME', '/tmp'), 'db.sqlite3')
+
+cache.clear()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jan 30 2025, 10:59 AM (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216605
Attached To
D1391: swh-web: enforce the database file to be created in either $HOME or /tmp
Event Timeline
Log In to Comment