jikan-rest/.env.dist

156 lines
3.1 KiB
Plaintext
Raw Normal View History

###
# 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
2022-01-02 05:11:27 +05:00
APP_VERSION="4.0 Release Candidate"
2018-04-30 03:45:43 +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-09-13 13:00:59 +05:00
# Enable MyAnimeList Heartbeat
#
2020-09-13 13:00:59 +05:00
# Monitor bad requests to determine whether MyAnimeList is down
#
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
# 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
###
# 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
# 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
###
# 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
###
# Queue management
# Uses QUEUE_CONNECTION as queue storage (MongoDB, Redis, etc)
###
2020-05-27 02:32:54 +05:00
QUEUE_CONNECTION=database
QUEUE_TABLE=jobs
QUEUE_FAILED_TABLE=jobs_failed
2019-05-12 16:50:46 +05:00
QUEUE_DELAY_PER_JOB=5
###
# Scout config
###
# For TypeSense use: typesense
# For ElasticSearch use: Matchish\ScoutElasticSearch\Engines\ElasticSearchEngine
#SCOUT_DRIVER=typesense
#SCOUT_QUEUE=false
###
# TypeSense Config
###
#TYPESENSE_HOST=localhost
#TYPESENSE_PORT=8108
#TYPESENSE_API_KEY=
#TYPESENSE_SEARCH_EXHAUSTIVE=true
#TYPESENSE_SEARCH_CUTTOFF_MS=450
###
# ElasticSearch Config
###
2022-06-18 11:48:45 +01:00
# Host -- required
# ELASTICSEARCH_HOST=host:port
# you can use commas as sperator for additional nodes:
# ELASTICSEARCH_HOST=host:port,host:port
2022-06-18 11:48:45 +01:00
# username (optional)
# ELASTICSEARCH_USER=user
# password (optional)
# ELASTICSEARCH_PASSWORD=password
# api key (optional)
# ELASTICSEARCH_API_KEY=apikey
# cloud id (optional)
# ELASTICSEARCH_CLOUD_ID=cloudid
###
# 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
###
REPORTING=false
2021-09-11 19:36:27 +05:00
REPORTING_DRIVER=sentry
SENTRY_LARAVEL_DSN="https://examplePublicKey@o0.ingest.sentry.io/0"
SENTRY_TRACES_SAMPLE_RATE=0.5
2022-02-10 19:11:28 +05:00
###
# Endpoints
###
DISABLE_USER_LISTS=false