de206162f9
## Issues from the initial attempt - There are 2 versions of `Lbry` and `buildURI` -- the app and web-server version. There are subtle differences between them, and for the app case, importing the web-server version results in a query into an invalid URL. - It changed the function from returning a string to returning a promise. ## Changes - Since the new function (renamed to `fetchStreamUrl` for clarity) is currently only needed for web-server, I moved it into the `web` folder to avoid misuse in app. - Await on the promise. Unfortunately, this also means the entire chain of function calls need to be adjusted to be `async`.
110 lines
4.1 KiB
Text
110 lines
4.1 KiB
Text
####### .env.default #########
|
|
|
|
# Copy this file to .env to make modifications
|
|
|
|
# --- Base config ---
|
|
WEBPACK_WEB_PORT=9090
|
|
WEBPACK_ELECTRON_PORT=9091
|
|
WEB_SERVER_PORT=1337
|
|
|
|
# -- APIs ---
|
|
LBRY_WEB_API=https://api.na-backend.odysee.com
|
|
LBRY_WEB_BUFFER_API=https://collector-service.api.lbry.tv/api/v1/events/video
|
|
COMMENT_SERVER_API=https://comments.odysee.tv/api/v2
|
|
SEARCH_SERVER_API_ALT=https://recsys.odysee.tv/search
|
|
SEARCH_SERVER_API=https://lighthouse.odysee.tv/search
|
|
SOCKETY_SERVER_API=wss://sockety.odysee.tv/ws
|
|
RECSYS_ENDPOINT=https://recsys.odysee.tv/v1/lvv
|
|
RECSYS_FYP_ENDPOINT=https://recsys.odysee.tv/v1/u
|
|
# -Disable boost due to instability:
|
|
# IMAGE_PROXY_URL=https://boost.vanwanet.com/index.php
|
|
THUMBNAIL_CDN_URL=https://thumbnails.odycdn.com/optimize/
|
|
THUMBNAIL_CARDS_CDN_URL=https://cards.odycdn.com/
|
|
LOCALE_API=https://api.odysee.com/legal/requirements
|
|
THUMBNAIL_HEIGHT=220
|
|
THUMBNAIL_HEIGHT_MOBILE=506
|
|
THUMBNAIL_WIDTH=390
|
|
THUMBNAIL_WIDTH_MOBILE=900
|
|
THUMBNAIL_QUALITY=85
|
|
THUMBNAIL_CDN_SIZE_LIMIT_BYTES=5242880
|
|
WELCOME_VERSION=1.0
|
|
|
|
# --- Stripe ---
|
|
# STRIPE_PUBLIC_KEY='pk_test_NoL1JWL7i1ipfhVId5KfDZgo'
|
|
|
|
# --- OG ---
|
|
OG_TITLE_SUFFIX=| odysee.com
|
|
OG_HOMEPAGE_TITLE=Odysee
|
|
OG_IMAGE_URL=https://thumbnails.odycdn.com/optimize/s:1200:630/quality:85/plain/https://spee.ch/odysee-og:e.png
|
|
SITE_CANONICAL_URL=odysee.com
|
|
|
|
# --- UI ---
|
|
DOMAIN=odysee.com
|
|
URL=https://odysee.com
|
|
SITE_TITLE=Odysee
|
|
SITE_NAME=Odysee
|
|
SITE_DESCRIPTION=Explore a whole universe of videos on Odysee from regular people just like you!
|
|
SITE_HELP_EMAIL=help@odysee.com
|
|
LOGO_TITLE=odysee
|
|
TWITTER_ACCOUNT=OdyseeTeam
|
|
LOADING_BAR_COLOR=#e50054
|
|
|
|
BRANDED_SITE=odysee
|
|
SIMPLE_SITE=false
|
|
ENABLE_WILD_WEST=true
|
|
CUSTOM_HOMEPAGE=false
|
|
SHOW_ADS=true
|
|
ENABLE_MATURE=false
|
|
ENABLE_UI_NOTIFICATIONS=true
|
|
#SHOW_TAGS_INTRO=false
|
|
USE_LOCAL_HOMEPAGE_DATA=true
|
|
|
|
AUTO_FOLLOW_CHANNELS=lbry://@lbry#3fda836a92faaceedfe398225fb9b2ee2ed1f01a
|
|
|
|
# --- Image Assets ---
|
|
YRBL_HAPPY_IMG_URL=https://thumbnails.odycdn.com/optimize/s:300:300/quality:85/plain/https://spee.ch/spaceman-happy:a.png
|
|
YRBL_SAD_IMG_URL=https://thumbnails.odycdn.com/optimize/s:300:300/quality:85/plain/https://spee.ch/spaceman-sad:d.png
|
|
LOGIN_IMG_URL=https://thumbnails.odycdn.com/optimize/s:400:507/quality:85/plain/https://player.odycdn.com/speech/odysee-sign-up:d.png
|
|
LOGO=https://thumbnails.odycdn.com/optimize/s:100:100/quality:85/plain/https://spee.ch/odysee-logo-png:3.png
|
|
LOGO_WHITE_TEXT=https://thumbnails.odycdn.com/optimize/s:1000:300/quality:85/plain/https://spee.ch/odysee-white-png:f.png
|
|
LOGO_DARK_TEXT=https://thumbnails.odycdn.com/optimize/s:1000:300/quality:85/plain/https://spee.ch/odysee-png:2.png
|
|
AVATAR_DEFAULT=https://thumbnails.odycdn.com/optimize/s:160:160/quality:85/plain/https://spee.ch/spaceman-png:2.png
|
|
MISSING_THUMB_DEFAULT=https://thumbnails.odycdn.com/optimize/s:390:220/quality:85/plain/https://spee.ch/missing-thumb-png
|
|
FAVICON=https://odysee.com/public/favicon-spaceman.png
|
|
|
|
# --- Locale ---
|
|
DEFAULT_LANGUAGE=en
|
|
|
|
# --- Custom Settings ---
|
|
# Additional settings for below are found in ui/constants/settings and are for
|
|
# preventing user settings from applying to custom sites without overwriting them.
|
|
# UNSYNCED_SETTINGS='theme dark_mode_times automatic_dark_mode_enabled'
|
|
|
|
# --- Linked Content Whitelist ---
|
|
KNOWN_APP_DOMAINS=open.lbry.com,lbry.tv,lbry.lat,odysee.com
|
|
|
|
# --- Features & Limits ---
|
|
CHANNEL_CREATION_LIMIT=5
|
|
CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS=4
|
|
ENABLE_COMMENT_REACTIONS=true
|
|
ENABLE_CREATOR_REACTIONS=true
|
|
ENABLE_FILE_REACTIONS=true
|
|
ENABLE_NO_SOURCE_CLAIMS=true
|
|
ENABLE_PREROLL_ADS=true
|
|
LIGHTHOUSE_DEFAULT_TYPES=audio,video
|
|
WEB_PUBLISH_SIZE_LIMIT_GB=4
|
|
|
|
#ENABLE_PAID_CONTENT=true
|
|
|
|
# --- Firebase ---
|
|
FIREBASE_API_KEY=AIzaSyAgc-4QORyglpYZ3qH9E5pDauEDOJXgM3A
|
|
FIREBASE_AUTH_DOMAIN=lbry-mobile.firebaseapp.com
|
|
FIREBASE_PROJECT_ID=lbry-mobile
|
|
FIREBASE_STORAGE_BUCKET=lbry-mobile.appspot.com
|
|
FIREBASE_MESSAGING_SENDER_ID=638894153788
|
|
FIREBASE_APP_ID=1:638894153788:web:35b295b15297201bd2e339
|
|
FIREBASE_MEASUREMENT_ID=G-2MPJGFEEXC
|
|
FIREBASE_VAPID_KEY=BFayEBpwMTU9GQQpXgitIJkfx-SD8-ltrFb3wLTZWgA27MfBhG4948pe0eERl432NzPrMKsbkXnA7ap_vLPgLYk
|
|
|
|
# --- Development ---
|
|
REPORT_NEW_STRINGS=false
|