+5
-3
config/osu.php
+5
-3
config/osu.php
···
18
18
'achievement' => [
19
19
'icon_prefix' => env('USER_ACHIEVEMENT_ICON_PREFIX', 'https://assets.ppy.sh/user-achievements/'),
20
20
],
21
+
21
22
'api' => [
22
23
// changing the throttle rate doesn't reset any existing timers,
23
24
// changing the prefix key is the only way to invalidate them.
···
26
27
'scores_download' => env('API_THROTTLE_SCORES_DOWNLOAD', '10,1,api-scores-download'),
27
28
],
28
29
],
30
+
29
31
'avatar' => [
30
32
'cache_purge_prefix' => env('AVATAR_CACHE_PURGE_PREFIX'),
31
33
'cache_purge_method' => env('AVATAR_CACHE_PURGE_METHOD'),
···
33
35
'default' => env('DEFAULT_AVATAR', env('APP_URL', 'http://localhost').'/images/layout/avatar-guest@2x.png'),
34
36
'storage' => env('AVATAR_STORAGE', 'local-avatar'),
35
37
],
38
+
36
39
'bbcode' => [
37
40
// this should be random or a config variable.
38
41
// ...who am I kidding, this shouldn't even exist at all.
···
190
193
'processing_queue' => presence(env('SCORES_PROCESSING_QUEUE')) ?? 'osu-queue:score-statistics',
191
194
'submission_enabled' => get_bool(env('SCORES_SUBMISSION_ENABLED')) ?? true,
192
195
],
196
+
193
197
'seasonal' => [
194
198
'contest_id' => get_int(env('SEASONAL_CONTEST_ID')),
195
199
'ends_at' => env('SEASONAL_ENDS_AT'),
196
200
],
197
-
'seasons' => [
198
-
'factors_cache_duration' => 60 * (get_float(env('SEASONS_FACTORS_CACHE_DURATION')) ?? 60), // in minutes, converted to seconds
199
-
],
201
+
200
202
'store' => [
201
203
'notice' => presence(str_replace('\n', "\n", env('STORE_NOTICE') ?? '')),
202
204
],