Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123715
D5091.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
D5091.diff
View Options
diff --git a/docker/conf/web-search.yml b/docker/conf/web-search.yml
new file mode 100644
--- /dev/null
+++ b/docker/conf/web-search.yml
@@ -0,0 +1,66 @@
+storage:
+ cls: remote
+ url: http://swh-storage:5002/
+ timeout: 1
+
+indexer_storage:
+ cls: remote
+ url: http://swh-idx-storage:5007/
+
+scheduler:
+ cls: remote
+ url: http://swh-scheduler:5008/
+
+vault:
+ cls: remote
+ url: http://swh-vault:5005/
+
+deposit:
+ private_api_url: https://swh-deposit:5006/1/private/
+ private_api_user: swhworker
+ private_api_password: ""
+
+search:
+ cls: remote
+ url: http://swh-search:5010/
+
+metadata_search_backend: swh-search
+
+allowed_hosts:
+ - "*"
+
+debug: yes
+
+serve_assets: yes
+
+development_db: /tmp/db.sqlite3
+production_db: /tmp/db.sqlite3
+
+throttling:
+ cache_uri: 127.0.0.1:11211
+ scopes:
+ swh_api:
+ limiter_rate:
+ default: 120/h
+ exempted_networks:
+ - 0.0.0.0/0
+ swh_api_origin_search:
+ limiter_rate:
+ default: 70/m
+ exempted_networks:
+ - 0.0.0.0/0
+ swh_api_origin_visit_latest:
+ limiter_rate:
+ default: 700/m
+ exempted_networks:
+ - 0.0.0.0/0
+ swh_vault_cooking:
+ limiter_rate:
+ default: 120/h
+ exempted_networks:
+ - 0.0.0.0/0
+ swh_save_origin:
+ limiter_rate:
+ default: 120/h
+ exempted_networks:
+ - 0.0.0.0/0
diff --git a/docker/docker-compose.search.yml b/docker/docker-compose.search.yml
--- a/docker/docker-compose.search.yml
+++ b/docker/docker-compose.search.yml
@@ -50,5 +50,13 @@
- "./conf/search_journal_client_indexed.yml:/etc/softwareheritage/search/journal_client.yml:ro"
- "./services/swh-search-journal-client/entrypoint.sh:/entrypoint.sh:ro"
+ swh-web:
+ depends_on:
+ - swh-search
+ environment:
+ SWH_CONFIG_FILENAME: /web-search.yml
+ volumes:
+ - "./conf/web-search.yml:/web-search.yml:ro"
+
volumes:
elasticsearch-data:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 19 2024, 9:29 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3215731
Attached To
D5091: docker: Enable swh-search backend in swh-web when using elasticsearch
Event Timeline
Log In to Comment