2021-04-12 19:47:21 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
application:
|
2021-04-24 14:19:24 +02:00
|
|
|
debug: true
|
2021-04-12 19:47:21 +02:00
|
|
|
# Enable special Postgres `sharience` table to retrieve user-sent files
|
2021-04-24 16:18:16 +02:00
|
|
|
is_sharience_enabled: false
|
2021-04-12 19:47:21 +02:00
|
|
|
# URL to the picture shown while maintenance
|
|
|
|
maintenance_picture_url:
|
|
|
|
# Used in logging
|
|
|
|
service_name: nexus-hub
|
|
|
|
# Store file hashes into operation log
|
|
|
|
should_store_hashes: true
|
|
|
|
database:
|
|
|
|
database: nexus
|
2021-04-24 16:18:16 +02:00
|
|
|
enabled: false
|
2021-04-12 19:47:21 +02:00
|
|
|
host:
|
2021-04-23 17:23:02 +02:00
|
|
|
password:
|
|
|
|
username:
|
2021-04-12 19:47:21 +02:00
|
|
|
grobid:
|
2021-04-24 15:28:04 +02:00
|
|
|
enabled: false
|
2021-04-12 19:47:21 +02:00
|
|
|
url:
|
|
|
|
grpc:
|
|
|
|
# Listen address
|
|
|
|
address: 0.0.0.0
|
|
|
|
# Listen port
|
|
|
|
port: 9090
|
|
|
|
ipfs:
|
2021-04-24 14:33:34 +02:00
|
|
|
address: localhost
|
2021-04-12 19:47:21 +02:00
|
|
|
port: 4001
|
2021-04-23 17:23:02 +02:00
|
|
|
log_path: '/var/log/nexus-hub'
|
2021-04-12 19:47:21 +02:00
|
|
|
meta_api:
|
|
|
|
url:
|
|
|
|
pylon:
|
|
|
|
# Proxy used in `pylon` retriever to download files
|
|
|
|
proxy: socks5://127.0.0.1:9050
|
|
|
|
# Proxy used in `pylon` retriever to get metadata
|
|
|
|
resolve_proxy: socks5://127.0.0.1:9050
|
|
|
|
telegram:
|
|
|
|
# Telegram App Hash from https://my.telegram.org/
|
2021-04-23 17:23:02 +02:00
|
|
|
app_hash:
|
2021-04-12 19:47:21 +02:00
|
|
|
# Telegram App ID from https://my.telegram.org/
|
|
|
|
app_id: 00000
|
|
|
|
# External bot name shown in messages to users
|
|
|
|
bot_external_name: libgen_scihub_bot
|
|
|
|
# Internal bot name used in logging
|
|
|
|
bot_name: nexus-hub
|
2021-04-23 17:23:02 +02:00
|
|
|
bot_token:
|
2021-04-12 19:47:21 +02:00
|
|
|
# Telethon database for keeping cache
|
|
|
|
database:
|
2021-04-24 15:28:04 +02:00
|
|
|
session_id: /tmp/nexus-hub.db
|
2021-04-12 19:47:21 +02:00
|
|
|
# Frequency of updating downloading progress
|
|
|
|
progress_throttle_seconds: 5
|
|
|
|
# Send files using stored telegram_file_id
|
|
|
|
should_use_telegram_file_id: true
|