forked from kr45732/rs-pixel-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.example_env
73 lines (67 loc) · 2.47 KB
/
.example_env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Required #
BASE_URL =
PORT =
API_KEY =
# Optional #
# API to use for username and uuid conversions (Mojang, Ashcon, or PlayerDb)
MINECRAFT_API_TYPE = Mojang
# How Hypixel API rate limits should be handled (Delay or Error)
RATE_LIMIT_STRATEGY = Delay
# Time (seconds) to live for username and uuid caching
MINECRAFT_CACHE_TTL = 900
# Time (seconds) to live for Hypixel API caching
# Comment out to disable caching for an endpoint
HYPIXEL_CACHE_TTL.KEY = 60
HYPIXEL_CACHE_TTL.BOOSTERS = 60
HYPIXEL_CACHE_TTL.LEADERBOARDS = 60
HYPIXEL_CACHE_TTL.PUNISHMENT_STATS = 60
HYPIXEL_CACHE_TTL.PLAYER = 60
HYPIXEL_CACHE_TTL.GUILD = 60
HYPIXEL_CACHE_TTL.COUNTS = 60
HYPIXEL_CACHE_TTL.STATUS = 60
HYPIXEL_CACHE_TTL.RECENT_GAMES = 60
HYPIXEL_CACHE_TTL.SKYBLOCK_PROFILES = 90
HYPIXEL_CACHE_TTL.SKYBLOCK_PROFILE = 90
HYPIXEL_CACHE_TTL.SKYBLOCK_BINGO = 60
HYPIXEL_CACHE_TTL.SKYBLOCK_NEWS = 60
HYPIXEL_CACHE_TTL.SKYBLOCK_AUCTION = 60
HYPIXEL_CACHE_TTL.SKYBLOCK_AUCTIONS = 60
HYPIXEL_CACHE_TTL.SKYBLOCK_AUCTIONS_ENDED = 60
HYPIXEL_CACHE_TTL.SKYBLOCK_BAZAAR = 60
HYPIXEL_CACHE_TTL.SKYBLOCK_FIRESALES = 60
HYPIXEL_CACHE_TTL.RESOURCES_GAMES = 900
HYPIXEL_CACHE_TTL.RESOURCES_ACHIEVEMENTS = 900
HYPIXEL_CACHE_TTL.RESOURCES_CHALLENGES = 900
HYPIXEL_CACHE_TTL.RESOURCES_QUESTS = 900
HYPIXEL_CACHE_TTL.RESOURCES_GUILD_ACHIEVEMENTS = 900
HYPIXEL_CACHE_TTL.RESOURCES_VANITY_PETS = 900
HYPIXEL_CACHE_TTL.RESOURCES_VANITY_COMPANIONS = 900
HYPIXEL_CACHE_TTL.RESOURCES_SKYBLOCK_COLLECTIONS = 900
HYPIXEL_CACHE_TTL.RESOURCES_SKYBLOCK_SKILLS = 900
HYPIXEL_CACHE_TTL.RESOURCES_SKYBLOCK_ITEMS = 900
HYPIXEL_CACHE_TTL.RESOURCES_SKYBLOCK_ELECTION = 900
HYPIXEL_CACHE_TTL.RESOURCES_SKYBLOCK_BINGO = 900
# Enabled endpoints
SERVER.ENDPOINT.KEY = false
SERVER.ENDPOINT.BOOSTERS = true
SERVER.ENDPOINT.LEADERBOARDS = true
SERVER.ENDPOINT.PUNISHMENT_STATS = true
SERVER.ENDPOINT.PLAYER = true
SERVER.ENDPOINT.GUILD = true
SERVER.ENDPOINT.COUNTS = true
SERVER.ENDPOINT.STATUS = true
SERVER.ENDPOINT.RECENT_GAMES = true
SERVER.ENDPOINT.SKYBLOCK_PROFILES = true
SERVER.ENDPOINT.SKYBLOCK_PROFILE = true
SERVER.ENDPOINT.SKYBLOCK_BINGO = true
SERVER.ENDPOINT.SKYBLOCK_NEWS = true
SERVER.ENDPOINT.SKYBLOCK_AUCTION = true
SERVER.ENDPOINT.SKYBLOCK_AUCTIONS = true
SERVER.ENDPOINT.SKYBLOCK_AUCTIONS_ENDED = true
SERVER.ENDPOINT.SKYBLOCK_BAZAAR = true
SERVER.ENDPOINT.SKYBLOCK_FIRESALES = true
SERVER.ENDPOINT.RESOURCES = true
# Time (milliseconds) after which the quota is replenished
SERVER.PERIOD = 500
# How many requests can occur until per quota refresh
SERVER.BURST = 8