Is it possible to make a lemmy instance private were no communities, posts, user profiles and the homepage is not available unless your logged in?

  • Saik0A
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    On boot, with both options selected, the server locks up.

    Updating it after boot? I don’t know.

    • BlueÆther@no.lastname.nz
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      I guess it was worth the test to find out https://github.com/LemmyNet/lemmy/pull/3237

      https://github.com/LemmyNet/lemmy/issues/3073

      On start-up Lemmy checks if both the private_instance and federation_enabled flags are set. If they are, it raises and error which stops start-up meaning administrators are unable to edit the settings which cause the error.

      As a means of prevention, I’ve added some validation when editing or creating a site to ensure that both options are never selected at the same time.

      I thought about adjusting start-up behaviour to disregard one of the flags (like ignore federation if the private flag is set) but I thought it would be easier to just prevent the invalid state from being saved.

      This could probably coincide with a change to the UI as well but I can do that after.