.env 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # LOCAL ENVIRONMENT
  2. # Db config
  3. DB_NAME=squid
  4. DB_PASS=squid
  5. DB_PORT=23798
  6. # Processor service host
  7. PROCESSOR_HOST=localhost
  8. # Processor service prometheus port
  9. PROCESSOR_PROMETHEUS_PORT=3337
  10. # Graphql server port
  11. GQL_PORT=4350
  12. # Archive gateway url
  13. ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-http://localhost:8888/graphql}
  14. # Default config values
  15. SUPPORT_NO_CATEGORY_VIDEOS=true
  16. SUPPORT_NEW_CATEGORIES=true
  17. KILL_SWITCH_ON=false
  18. VIDEO_VIEW_PER_IP_TIME_LIMIT=86400 # 86400 seconds = 24 hours
  19. VIDEO_RELEVANCE_VIEWS_TICK=50 # every 50 views video relevance score will be recalculated
  20. RELEVANCE_WEIGHTS="[1, 0.03, 0.3, 0.5]" # [newness (30 days - days since created) weight, views weight, comments weight, rections weights]
  21. # Operator API secret
  22. OPERATOR_SECRET=this-is-not-so-secret-change-it
  23. # Processor configuration
  24. MAX_CACHED_ENTITIES=1000
  25. APP_PRIVATE_KEY=this-is-not-so-secret-change-it
  26. # Adjust accordingly with the number of trusted (used) reverse proxies!
  27. TRUSTED_REVERSE_PROXIES=1
  28. # Debug settings
  29. SQD_DEBUG=api:*