-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 💚 fix orion environment not working
Fixes the current orion environment not working. I have also removed the squid-archive services in favour of our new endpoint `https://archive.joystream.org/graphql`
- Loading branch information
Ignazio Bovo
committed
Sep 6, 2023
1 parent
d144823
commit dfd8667
Showing
4 changed files
with
100 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,35 +92,65 @@ BALANCE_CREDIT=300000000000 | |
BALANCE_LOCKED=300000000000 | ||
|
||
# ====================================== ORION ====================================== | ||
# Orion db config | ||
# Overrides `DB_*` environment variables for orion services in docker-compose.yml | ||
# We use a single postgres service for both: | ||
# - Subsquid archive's database (squid-archive, squid-archive-gateway) and | ||
# - Orion's database (orion_processor, orion_graphql-server). | ||
# ORION_DB_NAME is the name of the Orion's database, while SQUID_ARCHIVE_DB_NAME | ||
# is the name of the Subsquid archive database. | ||
SQUID_ARCHIVE_DB_NAME=squid_archive | ||
ORION_DB_NAME=orion | ||
ORION_DB_USER=postgres | ||
ORION_DB_PASS=postgres | ||
# LOCAL DEV ENVIRONMENT | ||
|
||
ORION_ENV=development | ||
DEV_DISABLE_SAME_SITE=true | ||
|
||
# Db config | ||
ORION_DB_NAME=squid | ||
ORION_DB_PASS=squid | ||
DB_ADMIN_USER=admin | ||
DB_ADMIN_PASS=admin | ||
ORION_DB_PORT=5433 | ||
|
||
# Orion / Subsquid archive service ports | ||
ORION_API_PORT=4350 | ||
# Processor service prometheus port | ||
PROCESSOR_PROMETHEUS_PORT=3337 | ||
SQUID_ARCHIVE_GATEWAY_PORT=8000 | ||
# Graphql server port | ||
GRAPHQL_API_PORT=4350 | ||
# Auth api port | ||
AUTH_API_PORT=4074 | ||
|
||
# Other Orion configs | ||
APP_NAME=Gleev | ||
SUPPORT_NO_CATEGORY_VIDEOS=true | ||
SUPPORT_NEW_CATEGORIES=true | ||
KILL_SWITCH_ON=false | ||
VIDEO_VIEW_PER_IP_TIME_LIMIT=30 | ||
VIDEO_RELEVANCE_VIEWS_TICK=50 | ||
RELEVANCE_WEIGHTS="[1, 0.03, 0.3, 0.5]" | ||
# 10 seconds | ||
VIDEO_VIEW_PER_USER_TIME_LIMIT=10 | ||
# Operator API secret | ||
OPERATOR_SECRET=this-is-not-so-secret-change-it | ||
# every 50 views video relevance score will be recalculated | ||
VIDEO_RELEVANCE_VIEWS_TICK=50 | ||
# [ | ||
# newness (negative number of days since created) weight, | ||
# views weight, | ||
# comments weight, | ||
# rections weights, | ||
# [joystream creation weight, YT creation weight] | ||
# ] | ||
RELEVANCE_WEIGHTS="[1, 0.03, 0.3, 0.5, [7,3]]" | ||
MAX_CACHED_ENTITIES=1000 | ||
APP_PRIVATE_KEY=this-is-not-so-secret-change-it | ||
TRUSTED_REVERSE_PROXIES=1 | ||
SESSION_EXPIRY_AFTER_INACTIVITY_MINUTES=60 | ||
SESSION_MAX_DURATION_HOURS=720 | ||
EMAIL_CONFIRMATION_ROUTE=http://localhost:4074/api/v1/confirm-email?token={token} | ||
EMAIL_CONFIRMATION_TOKEN_EXPIRY_TIME_HOURS=24 | ||
EMAIL_CONFIRMATION_TOKEN_RATE_LIMIT=5 | ||
ACCOUNT_OWNERSHIP_PROOF_EXPIRY_TIME_SECONDS=300 # 5 minutes | ||
COOKIE_SECRET=this-is-not-so-secret-change-it | ||
|
||
TRUST_PROXY=uniquelocal | ||
|
||
# Sendgrid API | ||
SENDGRID_API_KEY= | ||
SENDGRID_FROM_EMAIL=[email protected] | ||
|
||
# Debug settings | ||
SQD_DEBUG=api:* | ||
OPENAPI_PLAYGROUND=true | ||
|
||
ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-https://archive.joystream.org/graphql} | ||
|
||
# ===================================================================================== | ||
|
||
## Telemetry | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
listen_addresses = '*' | ||
log_statement = all | ||
autovacuum_analyze_scale_factor = 0.01 | ||
shared_buffers=1GB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters