• Semperverus@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      3
      ·
      1 month ago

      I wish we would all start switching over to JSON for configuration files. It’s so much easier to parse, and you can’t screw it up with too many spaces or not enough.

        • tiramichu@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 month ago

          My biggest peeve with JSON when I’m forced to use it as a configuration format is that it doesn’t have any syntactical support for comments.

          So I can’t even add any notes to the file.

          • lightnegative@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 month ago

            Yep this for me too. Thankfully VSCode allows comments in its settings.json / launch.json files but most programs use strict JSON which doesn’t allow comments

        • Voroxpete@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 month ago

          Yeah, this is my biggest annoyance with JSON. As a data structure it’s very elegant, but it only really makes sense to people who know how to code, and without the ability to add comments you have to rely heavily on external documentation to make it readable to most users.

      • Voroxpete@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        1 month ago

        Instead you can screw it up by having too many commas or not enough. Hardly that much of an improvement.

      • lightnegative@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 month ago

        I used to think that until I figured out yaml and now yaml isn’t so bad.

        It helps that text editors know what yaml is now so insert spaces when you hit tab etc

    • TheBigRoomXXL@leminal.space
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      Drag and drop isn’t for me either but it’s nice to have more beginners-friendly options in the self hosted community. Not everybody like to live in the terminal.

  • LazerDickMcCheese@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 month ago

    If any of you can get the Pi-hole integration to work, let me know how you did it. There’s a github thread about it, but I haven’t heard any progress

    It worked for a long time until an update pretty recently.

    • Dagnet@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      I have it working but I do remember struggling a bit with it, involved getting a password somewhere, can’t check rn

    • Sean@infosec.pub
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      I might have adjusted the container to run with my local DNS, but all I’m doing for that service is:

         - Pi-Hole- Hostname:
             icon: /icons/pihole.png
             href: https://my.internal.domain/admin
             server: Hostname
             widget:
                type: pihole
                url: https://my.internal.domain/
                version: 6 # required if running v6 or higher, defaults to 5
                # Application Password:
                key: "<< REDACTED >>"
      

      Replaced my Pi’s hostname, internal domain, keys, etc, but I have this running for two Pi-Holes on my network.

    • Sean@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      1 month ago

      I’ll take a look when i get home tonight. I do have mine working.