instance.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. return [
  3. 'description' => env('INSTANCE_DESCRIPTION', null),
  4. 'contact' => [
  5. 'enabled' => env('INSTANCE_CONTACT_FORM', false),
  6. 'max_per_day' => env('INSTANCE_CONTACT_MAX_PER_DAY', 1),
  7. ],
  8. 'discover' => [
  9. 'tags' => [
  10. 'is_public' => env('INSTANCE_PUBLIC_HASHTAGS', false)
  11. ],
  12. ],
  13. 'email' => env('INSTANCE_CONTACT_EMAIL'),
  14. 'timeline' => [
  15. 'local' => [
  16. 'is_public' => env('INSTANCE_PUBLIC_LOCAL_TIMELINE', false)
  17. ]
  18. ],
  19. 'page' => [
  20. '404' => [
  21. 'header' => env('PAGE_404_HEADER', 'Sorry, this page isn\'t available.'),
  22. 'body' => env('PAGE_404_BODY', 'The link you followed may be broken, or the page may have been removed. <a href="/">Go back to Pixelfed.</a>')
  23. ],
  24. '503' => [
  25. 'header' => env('PAGE_503_HEADER', 'Service Unavailable'),
  26. 'body' => env('PAGE_503_BODY', 'Our service is in maintenance mode, please try again later.')
  27. ]
  28. ],
  29. 'username' => [
  30. 'banned' => env('BANNED_USERNAMES'),
  31. 'remote' => [
  32. 'formats' => ['@', 'from', 'custom'],
  33. 'format' => in_array(env('USERNAME_REMOTE_FORMAT', '@'), ['@','from','custom']) ? env('USERNAME_REMOTE_FORMAT', '@') : '@',
  34. 'custom' => env('USERNAME_REMOTE_CUSTOM_TEXT', null)
  35. ]
  36. ],
  37. 'stories' => [
  38. 'enabled' => env('STORIES_ENABLED', false),
  39. ],
  40. 'restricted' => [
  41. 'enabled' => env('RESTRICTED_INSTANCE', false),
  42. 'level' => 1
  43. ]
  44. ];