2020-05-26 13:26:38 +05:00
|
|
|
###
|
|
|
|
# App
|
|
|
|
###
|
2018-04-30 03:45:43 +05:00
|
|
|
APP_ENV=production
|
|
|
|
APP_DEBUG=false
|
|
|
|
APP_KEY=
|
|
|
|
APP_TIMEZONE=UTC
|
2019-05-11 11:43:55 +05:00
|
|
|
APP_URL=http://localhost
|
2018-04-30 03:45:43 +05:00
|
|
|
|
2020-05-26 13:26:38 +05:00
|
|
|
###
|
|
|
|
# Database Caching (MongoDB)
|
|
|
|
###
|
|
|
|
DB_CACHING=true
|
2020-05-21 08:30:34 +05:00
|
|
|
DB_CONNECTION=mongodb
|
|
|
|
DB_HOST=localhost
|
|
|
|
DB_PORT=27017
|
2020-05-27 02:32:54 +05:00
|
|
|
DB_DATABASE=jikan
|
2020-05-21 08:30:34 +05:00
|
|
|
DB_USERNAME=
|
|
|
|
DB_PASSWORD=
|
|
|
|
MONGODB_DSN=
|
|
|
|
|
2020-05-26 13:26:38 +05:00
|
|
|
###
|
|
|
|
# Enable MyAnimeList Health checker
|
|
|
|
#
|
|
|
|
# If MyAnimeList is down or unavailable,
|
|
|
|
# Jikan will try to generate responses from internally
|
2020-05-27 02:29:30 +05:00
|
|
|
# populated cache where available
|
2020-05-26 13:26:38 +05:00
|
|
|
#
|
|
|
|
# Note: DB_CACHING must be enabled
|
|
|
|
###
|
2020-05-26 22:00:35 +05:00
|
|
|
SOURCE_BAD_HEALTH_FAILOVER=true
|
|
|
|
# Fallback once the following threshold is reached
|
|
|
|
SOURCE_BAD_HEALTH_THRESHOLD=10
|
|
|
|
# Recheck source availability (in seconds)
|
|
|
|
SOURCE_BAD_HEALTH_RECHECK=10
|
|
|
|
# Fail count only within specified time range (in seconds)
|
|
|
|
SOURCE_BAD_HEALTH_RANGE=30
|
|
|
|
# Max Fail stores
|
|
|
|
SOURCE_BAD_HEALTH_MAX_STORE=50
|
2020-07-10 17:07:16 +05:00
|
|
|
# Max time request is allowed to take
|
|
|
|
# https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html
|
|
|
|
SOURCE_TIMEOUT=5
|
|
|
|
# Timeout for connect phase
|
|
|
|
# https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html
|
|
|
|
SOURCE_CONNECT_TIMEOUT=5
|
2020-05-26 13:26:38 +05:00
|
|
|
|
|
|
|
###
|
|
|
|
# Caching (File, Redis, etc)
|
|
|
|
# Can be added over DB Caching
|
|
|
|
###
|
2020-05-21 08:30:34 +05:00
|
|
|
CACHING=false
|
2020-05-27 02:32:54 +05:00
|
|
|
CACHE_DRIVER=array
|
|
|
|
CACHE_METHOD=queue
|
2020-05-26 13:26:38 +05:00
|
|
|
|
|
|
|
# Caching TTL (in seconds) on specific endpoints
|
2020-07-11 13:10:40 +05:00
|
|
|
CACHE_DEFAULT_EXPIRE=86400 # 1 day
|
|
|
|
CACHE_META_EXPIRE=300 # 5 minutes
|
|
|
|
CACHE_USER_EXPIRE=300 # 5 minutes
|
|
|
|
CACHE_USERLIST_EXPIRE=3600 # 1 hour
|
|
|
|
CACHE_404_EXPIRE=604800 # 7 days
|
|
|
|
CACHE_SEARCH_EXPIRE=432000 # 5 days
|
|
|
|
CACHE_PRODUCERS_EXPIRE=432000 # 5 days
|
|
|
|
CACHE_MAGAZINES_EXPIRE=432000 # 5 days
|
2019-01-15 22:03:50 +05:00
|
|
|
|
2020-05-26 13:26:38 +05:00
|
|
|
# You can even add your own by
|
|
|
|
# including the endpoint's name
|
|
|
|
# to specifiy a different TTL
|
|
|
|
# e.g CACHING_ANIME_EXPIRE=100
|
|
|
|
# CACHING_MANGA_EXPIRE=80
|
|
|
|
|
|
|
|
###
|
|
|
|
# Redis Caching Configuration
|
|
|
|
###
|
|
|
|
REDIS_HOST=127.0.0.1
|
|
|
|
REDIS_PASSWORD=null
|
|
|
|
REDIS_PORT=6379
|
|
|
|
|
|
|
|
###
|
|
|
|
# Micro Caching
|
|
|
|
# Uses CACHE_DRIVER
|
|
|
|
###
|
2019-11-17 21:58:11 -08:00
|
|
|
MICROCACHING=false
|
|
|
|
MICROCACHING_EXPIRE=5
|
|
|
|
|
2020-05-26 13:26:38 +05:00
|
|
|
###
|
|
|
|
# Queue management
|
|
|
|
# Uses QUEUE_CONNECTION as queue storage (MongoDB, Redis, etc)
|
|
|
|
###
|
2020-05-27 02:32:54 +05:00
|
|
|
QUEUE_CONNECTION=database
|
2020-05-26 13:26:38 +05:00
|
|
|
QUEUE_TABLE=jobs
|
|
|
|
QUEUE_FAILED_TABLE=jobs_failed
|
2019-05-12 16:50:46 +05:00
|
|
|
QUEUE_DELAY_PER_JOB=5
|
|
|
|
|
2020-05-26 13:26:38 +05:00
|
|
|
###
|
|
|
|
# Throttling
|
|
|
|
# Rate limiting requests
|
|
|
|
###
|
2018-09-06 09:08:51 +05:00
|
|
|
THROTTLE=false
|
|
|
|
THROTTLE_DECAY_MINUTES=1
|
2019-11-15 08:20:39 -08:00
|
|
|
THROTTLE_MAX_REQUESTS_PER_DECAY_MINUTES=60
|
|
|
|
THROTTLE_MAX_REQUESTS_PER_SECOND=2
|
2018-09-06 09:08:51 +05:00
|
|
|
|
2020-05-26 13:26:38 +05:00
|
|
|
###
|
|
|
|
# Configure whether this is a slave instance
|
|
|
|
# This will help prevent throttling of the
|
|
|
|
# master server
|
|
|
|
###
|
2018-08-24 02:38:35 +05:00
|
|
|
SLAVE_INSTANCE=false
|
2018-08-24 03:10:49 +05:00
|
|
|
SLAVE_KEY=
|
2018-09-06 08:51:39 +05:00
|
|
|
SLAVE_CLIENT_IP_HEADER="X-Real-IP"
|
2019-04-26 00:55:05 +05:00
|
|
|
SLAVE_KEY_HEADER="X-Master"
|
|
|
|
|
2020-05-26 13:26:38 +05:00
|
|
|
###
|
|
|
|
# GitHub generate report URL on fatal errors
|
|
|
|
###
|
2019-04-28 03:30:36 +05:00
|
|
|
GITHUB_REPORTING=true
|
|
|
|
GITHUB_REST="jikan-me/jikan-rest"
|
2020-07-14 17:15:45 +05:00
|
|
|
GITHUB_API="jikan-me/jikan
|
|
|
|
|
|
|
|
|
|
|
|
SWAGGER_VERSION=3.0
|