2022-12-10 14:22:39 +00:00
|
|
|
################################################################################
|
|
|
|
### PLEASE FILL/ENABLE REQUIRED VARS AT LEAST BEFORE RUNNING THE APPLICATION ###
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
### 1. REQUIRED VARS(site may not work as expected without these).
|
|
|
|
################################################################################
|
2022-11-13 11:59:47 +00:00
|
|
|
## used for meta tags. e.g: 'https://libremdb.iket.me'. don't add end slash.
|
2022-09-11 14:07:24 +00:00
|
|
|
NEXT_PUBLIC_URL=
|
2022-12-10 14:22:39 +00:00
|
|
|
## used when fetching data from IMDb. not adding these could result in not getting any response.
|
|
|
|
## example useragent header: 'Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0'
|
|
|
|
AXIOS_USERAGENT=
|
|
|
|
## example accept header: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8'
|
|
|
|
AXIOS_ACCEPT=
|
2022-09-11 14:07:24 +00:00
|
|
|
|
2022-12-10 14:22:39 +00:00
|
|
|
################################################################################
|
|
|
|
### 2. OPTIONAL VARS(enabling these is encouraged)
|
|
|
|
################################################################################
|
|
|
|
## for forcing a certain language for data we get from imdb. Useful when you don't want your IP to determine the preferred language.
|
|
|
|
# AXIOS_LANGUAGE='en-US,en;q=0.5'
|
2022-11-13 11:59:47 +00:00
|
|
|
## comment it out if you wish to enable nextjs stats collection. more at https://nextjs.org/telemetry
|
|
|
|
NEXT_TELEMETRY_DISABLED=1
|
2022-10-31 22:14:28 +00:00
|
|
|
|
2022-12-10 14:22:39 +00:00
|
|
|
################################################################################
|
|
|
|
### 3. REDIS CONFIG(optional if you don't need redis)
|
|
|
|
################################################################################
|
2023-05-21 12:45:03 +00:00
|
|
|
## enables caching of api routes as well as media
|
2022-11-13 11:59:47 +00:00
|
|
|
# USE_REDIS=true
|
2023-05-21 12:45:03 +00:00
|
|
|
## in case you don't want to cache media but only api routes
|
|
|
|
# USE_REDIS_FOR_API_ONLY=true
|
|
|
|
## ttl for media and api
|
|
|
|
# REDIS_CACHE_TTL_API=3600
|
|
|
|
# REDIS_CACHE_TTL_MEDIA=3600
|
2022-11-13 11:59:47 +00:00
|
|
|
## for docker, just set the domain to the container name, default is 'libremdb_redis'
|
2023-05-21 12:45:03 +00:00
|
|
|
# REDIS_URL=localhost:6379
|
2023-01-28 13:36:21 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
### 4. INSTANCE META FIELDS(not required but good to have)
|
|
|
|
################################################################################
|
|
|
|
## example: 'https://iket.me'.
|
|
|
|
NEXT_PUBLIC_INSTANCE_MAIN_URL=
|
|
|
|
## eg: 'zyachel'
|
|
|
|
NEXT_PUBLIC_INSTANCE_NAME=
|