Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    config.js - editing/changing values is not reliable

    HedgeDoc
    4
    8
    254
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • luckow
      luckow translator last edited by luckow

      I added "allowGravatar": "false", in the config.js. "allowFreeUrl" is set to true. I restarted the app after editing values. 4 of 5 restarts doesn't change anything. One time it was possible to see no connection to cdn.libravatar.org the other 4 there was a connection.
      It was never possible to use a freeurl for my instance. Free means - the user can choose the url for the document (instead of an auto generated BAQdUImATHWGqLiaopmTlg strings).
      Is this the same on your instances?

      See https://docs.hedgedoc.org/configuration/#users-and-privileges for more options.

      Pronouns: he/him | Primary language: German

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        I am not sure how hedgedoc handles the config file delivery, but an I can't see how an app restart would load an old config file.
        Can you check if this is some caching issue? It seems you can fetch https://hedgedoc.example.com/config for your instance to verify the settings you've mentioned.

        1 Reply Last reply Reply Quote 0
        • R
          rstockm last edited by

          I can confirm that - more than one year later - thius is still an issue.

          allowFreeUrl is set to "true", but if I try to set up a new pad via a url like
          "pad.mykodymd.de/title"
          I just get an "404 Not Found oops." Message.

          This should be fixed, it's not a problem of HedgeDoc - this feature works fine on standalone instances.

          /config doesn't show any of the config fields, just:

          window.domain = 'pad.geheim.de'
          window.urlpath = ''
          window.debug = false
          window.version = '1.9.4'
          
          window.allowedUploadMimeTypes = ["image/jpeg","image/png","image/gif","image/svg+xml"]
          
          window.linkifyHeaderStyle = 'keep-case'
          
          window.DROPBOX_APP_KEY = ''
          
          window.cookiePolicy = 'lax'
          
          girish 1 Reply Last reply Reply Quote 1
          • girish
            girish Staff @rstockm last edited by

            @rstockm thanks, can confirm.

            cloudron env set CMD_ALLOW_FREEURL=true
            

            makes it work. So, clearly the config is not getting picked up. Debugging...

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by

              OK, it is allowFreeURL and not allowFreeUrl. @rstockm Change the field in config.json and restart the app. That fixes it. I am making a new package with the typo fixed.

              R 1 Reply Last reply Reply Quote 3
              • R
                rstockm @girish last edited by

                @girish Escellent - that does the trick, tanks for the quick support.

                R 1 Reply Last reply Reply Quote 0
                • R
                  rstockm @rstockm last edited by

                  @rstockm ...by the way: it should be "true" by default. Such a convenient feature.

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @rstockm last edited by

                    @rstockm this is the upstream default, so might be worthwhile opening an issue upstream.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB