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
|
2024-01-31 11:13:53 +05:00
|
|
|
APP_VERSION="4.2.1"
|
2018-04-30 03:45:43 +05:00
|
|
|
|
2023-04-23 05:25:02 +05:00
|
|
|
###
|
|
|
|
# Logging
|
|
|
|
###
|
|
|
|
LOG_CHANNEL=stack
|
|
|
|
LOG_SLACK_WEBHOOK_URL=
|
|
|
|
LOG_LEVEL=debug
|
|
|
|
|
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
|
2021-01-14 05:06:52 +05:00
|
|
|
DB_ADMIN=jikan
|
2020-05-21 08:30:34 +05:00
|
|
|
DB_USERNAME=
|
|
|
|
DB_PASSWORD=
|
|
|
|
|
2021-06-21 09:46:19 +05:00
|
|
|
###
|
|
|
|
# Database query default values
|
|
|
|
###
|
2022-02-18 06:27:01 +05:00
|
|
|
MAX_RESULTS_PER_PAGE=25
|
2021-06-21 09:46:19 +05:00
|
|
|
|
2020-05-26 13:26:38 +05:00
|
|
|
###
|
2020-09-13 13:00:59 +05:00
|
|
|
# Enable MyAnimeList Heartbeat
|
2020-05-26 13:26:38 +05:00
|
|
|
#
|
2020-09-13 13:00:59 +05:00
|
|
|
# Monitor bad requests to determine whether MyAnimeList is down
|
2020-05-26 13:26:38 +05:00
|
|
|
#
|
2020-05-26 22:00:35 +05:00
|
|
|
# Fallback once the following threshold is reached
|
2020-09-13 13:00:59 +05:00
|
|
|
###
|
2020-11-07 06:23:35 +05:00
|
|
|
SOURCE=local
|
2020-05-26 22:00:35 +05:00
|
|
|
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
|
2021-06-13 02:51:27 +05:00
|
|
|
# Disable failover if the score reaches the following (0.0-1.0 values ONLY)
|
|
|
|
# e.g 0.9 means 90% successful requests to MyAnimeList
|
|
|
|
SOURCE_GOOD_HEALTH_SCORE=0.9
|
2020-07-10 17:07:16 +05:00
|
|
|
# Max time request is allowed to take
|
|
|
|
# https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html
|
2021-07-17 23:53:56 +05:00
|
|
|
SOURCE_TIMEOUT=10
|
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
|
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
|
2022-12-03 03:21:02 +05:00
|
|
|
CACHE_MICROCACHE_EXPIRE=60
|
2020-05-26 13:26:38 +05:00
|
|
|
|
|
|
|
###
|
|
|
|
# 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
|
|
|
|
|
2022-06-17 16:19:27 +01:00
|
|
|
###
|
|
|
|
# Scout config
|
|
|
|
###
|
|
|
|
# For TypeSense use: typesense
|
|
|
|
#SCOUT_DRIVER=typesense
|
|
|
|
#SCOUT_QUEUE=false
|
|
|
|
|
|
|
|
###
|
|
|
|
# TypeSense Config
|
|
|
|
###
|
|
|
|
#TYPESENSE_HOST=localhost
|
|
|
|
#TYPESENSE_PORT=8108
|
|
|
|
#TYPESENSE_API_KEY=
|
2022-11-28 23:00:43 +05:00
|
|
|
#TYPESENSE_SEARCH_EXHAUSTIVE=true
|
|
|
|
#TYPESENSE_SEARCH_CUTTOFF_MS=450
|
2022-06-17 16:19:27 +01:00
|
|
|
|
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"
|
2021-06-15 09:20:29 +05:00
|
|
|
GITHUB_API="jikan-me/jikan"
|
|
|
|
|
2021-06-21 09:46:19 +05:00
|
|
|
###
|
|
|
|
# OpenAPI
|
|
|
|
###
|
2021-09-11 19:36:27 +05:00
|
|
|
SWAGGER_VERSION=3.0
|
|
|
|
|
|
|
|
###
|
|
|
|
# API call insights
|
|
|
|
###
|
|
|
|
# Enable/Disable insights API system
|
2021-11-13 06:14:01 +05:00
|
|
|
INSIGHTS=false #WIP
|
2021-09-11 19:36:27 +05:00
|
|
|
# Max requests store in seconds - default 2 days
|
|
|
|
INSIGHTS_MAX_STORE_TIME=172800
|
|
|
|
|
|
|
|
###
|
|
|
|
# Error reporting
|
|
|
|
###
|
2022-07-07 21:28:01 +05:00
|
|
|
REPORTING=false
|
2021-09-11 19:36:27 +05:00
|
|
|
REPORTING_DRIVER=sentry
|
|
|
|
SENTRY_LARAVEL_DSN="https://examplePublicKey@o0.ingest.sentry.io/0"
|
2022-07-07 21:28:01 +05:00
|
|
|
SENTRY_TRACES_SAMPLE_RATE=0.5
|
2022-02-10 19:11:28 +05:00
|
|
|
|
|
|
|
###
|
|
|
|
# Endpoints
|
|
|
|
###
|
2022-07-07 21:28:01 +05:00
|
|
|
DISABLE_USER_LISTS=false
|