mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update site config, add labels to config
This commit is contained in:
parent
ab888b2e70
commit
abe9cb3db0
2 changed files with 18 additions and 2 deletions
|
@ -8,7 +8,7 @@ use Illuminate\Support\Str;
|
||||||
class Config {
|
class Config {
|
||||||
|
|
||||||
public static function get() {
|
public static function get() {
|
||||||
return Cache::remember('api:site:configuration:_v0.1', now()->addHours(30), function() {
|
return Cache::remember('api:site:configuration:_v0.2', now()->addHours(30), function() {
|
||||||
return [
|
return [
|
||||||
'open_registration' => config('pixelfed.open_registration'),
|
'open_registration' => config('pixelfed.open_registration'),
|
||||||
'uploader' => [
|
'uploader' => [
|
||||||
|
@ -62,6 +62,13 @@ class Config {
|
||||||
'instagram' => config('pixelfed.import.instagram.enabled'),
|
'instagram' => config('pixelfed.import.instagram.enabled'),
|
||||||
'mastodon' => false,
|
'mastodon' => false,
|
||||||
'pixelfed' => false
|
'pixelfed' => false
|
||||||
|
],
|
||||||
|
'label' => [
|
||||||
|
'covid' => [
|
||||||
|
'enabled' => config('instance.label.covid.enabled'),
|
||||||
|
'org' => config('instance.label.covid.org'),
|
||||||
|
'url' => config('instance.label.covid.url'),
|
||||||
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
|
@ -36,6 +36,7 @@ return [
|
||||||
'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.')
|
'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.')
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
'username' => [
|
'username' => [
|
||||||
'banned' => env('BANNED_USERNAMES'),
|
'banned' => env('BANNED_USERNAMES'),
|
||||||
'remote' => [
|
'remote' => [
|
||||||
|
@ -61,5 +62,13 @@ return [
|
||||||
'enabled' => env('OAUTH_PAT_ENABLED', false),
|
'enabled' => env('OAUTH_PAT_ENABLED', false),
|
||||||
'id' => env('OAUTH_PAT_ID'),
|
'id' => env('OAUTH_PAT_ID'),
|
||||||
]
|
]
|
||||||
]
|
],
|
||||||
|
|
||||||
|
'label' => [
|
||||||
|
'covid' => [
|
||||||
|
'enabled' => env('ENABLE_COVID_LABEL', true),
|
||||||
|
'url' => env('COVID_LABEL_URL', 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public'),
|
||||||
|
'org' => env('COVID_LABEL_ORG', 'visit the WHO website')
|
||||||
|
]
|
||||||
|
],
|
||||||
];
|
];
|
Loading…
Reference in a new issue