general.blade.php 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <form method="post">
  2. @csrf
  3. <div class="form-group row">
  4. <label for="app_url" class="col-sm-3 col-form-label font-weight-bold text-right">Registration</label>
  5. <div class="col-sm-9">
  6. <div class="form-check pb-2">
  7. <input class="form-check-input" type="checkbox" id="open_registration" name="open_registration" {{config('pixelfed.open_registration') === true ? 'checked=""' : '' }}>
  8. <label class="form-check-label font-weight-bold" for="open_registration">
  9. {{config('pixelfed.open_registration') === true ? 'Open' : 'Closed' }}
  10. </label>
  11. <p class="text-muted small help-text font-weight-bold">When this option is enabled, new user registration is open.</p>
  12. </div>
  13. </div>
  14. </div>
  15. <div class="form-group row">
  16. <label for="app_url" class="col-sm-3 col-form-label font-weight-bold text-right">Email Validation</label>
  17. <div class="col-sm-9">
  18. <div class="form-check pb-2">
  19. <input class="form-check-input" type="checkbox" id="enforce_email_verification" name="enforce_email_verification" {{config('pixelfed.enforce_email_verification') === true ? 'checked=""' : '' }}>
  20. <label class="form-check-label font-weight-bold" for="open_registration">
  21. {{config('pixelfed.enforce_email_verification') == true ? 'Enabled' : 'Disabled' }}
  22. </label>
  23. <p class="text-muted small help-text font-weight-bold">Enforce email validation for new user registration.</p>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="form-group row">
  28. <label for="app_url" class="col-sm-3 col-form-label font-weight-bold text-right">ActivityPub</label>
  29. <div class="col-sm-9">
  30. <div class="form-check pb-2">
  31. <input class="form-check-input" type="checkbox" id="activitypub_enabled" name="activitypub_enabled" {{config('federation.activitypub.enabled') === true ? 'checked=""' : '' }}>
  32. <label class="form-check-label font-weight-bold" for="activitypub_enabled">
  33. {{config('federation.activitypub.enabled') === true ? 'Enabled' : 'Disabled' }}
  34. </label>
  35. <p class="text-muted small help-text font-weight-bold">Enable for federation support.</p>
  36. </div>
  37. </div>
  38. </div>
  39. <hr>
  40. <div class="form-group row">
  41. <label class="col-sm-3 col-form-label font-weight-bold text-right">Account Size</label>
  42. <div class="col-sm-9">
  43. <input type="text" class="form-control" placeholder="1000000" name="max_account_size" value="{{config('pixelfed.max_account_size')}}">
  44. <span class="help-text font-weight-bold text-muted small">
  45. Max account size for users, in KB.
  46. </span>
  47. </div>
  48. </div>
  49. <div class="form-group row">
  50. <label class="col-sm-3 col-form-label font-weight-bold text-right">Max Upload Size</label>
  51. <div class="col-sm-9">
  52. <input type="text" class="form-control" placeholder="15000" name="max_photo_size" value="{{config('pixelfed.max_photo_size')}}">
  53. <span class="help-text font-weight-bold text-muted small">
  54. Max file size for uploads, in KB.
  55. </span>
  56. </div>
  57. </div>
  58. <div class="form-group row">
  59. <label class="col-sm-3 col-form-label font-weight-bold text-right">Caption Length</label>
  60. <div class="col-sm-9">
  61. <input type="text" class="form-control" placeholder="500" name="caption_limit" value="{{config('pixelfed.max_caption_length')}}">
  62. <span class="help-text font-weight-bold text-muted small">
  63. Character limit for captions and comments.
  64. </span>
  65. </div>
  66. </div>
  67. <div class="form-group row">
  68. <label class="col-sm-3 col-form-label font-weight-bold text-right">Max Album Size</label>
  69. <div class="col-sm-9">
  70. <input type="text" class="form-control" placeholder="3" name="album_limit" value="{{config('pixelfed.max_album_length')}}">
  71. <span class="help-text font-weight-bold text-muted small">
  72. Limit # of media per post.
  73. </span>
  74. </div>
  75. </div>
  76. <div class="form-group row">
  77. <label class="col-sm-3 col-form-label font-weight-bold text-right">Image Quality</label>
  78. <div class="col-sm-9">
  79. <input type="text" class="form-control" placeholder="80" name="image_quality" value="{{config('pixelfed.image_quality')}}">
  80. <span class="help-text font-weight-bold text-muted small">
  81. Image quality. Must be a value between 1 (worst) - 100 (best).
  82. </span>
  83. </div>
  84. </div>
  85. <hr>
  86. <div class="form-group row mb-0">
  87. <div class="col-12 text-right">
  88. <button type="submit" class="btn btn-primary font-weight-bold">Submit</button>
  89. </div>
  90. </div>
  91. </form>