-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix orion environment not working #4857
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
dfd8667
fix: :green_heart: fix orion environment not working
a4d086c
feat: :art: re enable squid archive configuration
1987289
fix: :green_heart: docker no bind
00fbe4e
fix: :bug: pr misc fixes
dd13eba
fix: :bug: ports for explorer container
7dc4190
fix: :bug: postgres file
9a77840
fix: :bug: sendgrid variables config
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,71 @@ 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 | ||
# archive configuration | ||
ARCHIVE_DB_PORT=12345 | ||
ARCHIVE_GATEWAY_PORT=8888 | ||
WS_SOURCE=ws://joystream-node:9944 | ||
ARCHIVE_EXPLORER_PORT=4444 | ||
|
||
# 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 | ||
ORION_SENDGRID_API_KEY= | ||
ORION_SENDGRID_FROM_EMAIL=gateway@example.com | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These need to be used in docker-compose to pass the expected env var name to orion like so:
|
||
|
||
# Debug settings | ||
SQD_DEBUG=api:* | ||
OPENAPI_PLAYGROUND=true | ||
|
||
ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-http://squid-archive-gateway:8000/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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obviously this will only work when opening email from the machine. But I gather we would most likely disable email confirmation and notifications in a playground setup so thats fine.