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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. HedgeDoc
  3. config.js - editing/changing values is not reliable

config.js - editing/changing values is not reliable

Scheduled Pinned Locked Moved HedgeDoc
8 Posts 4 Posters 1.3k Views 4 Watching
  • 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.
  • luckowL Online
    luckowL Online
    luckow
    translator
    wrote on last edited by luckow
    #1

    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
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      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
      0
      • R Offline
        R Offline
        rstockm
        wrote on last edited by
        #3

        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'
        
        girishG 1 Reply Last reply
        1
        • R rstockm

          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'
          
          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @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
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            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
            3
            • girishG girish

              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 Offline
              R Offline
              rstockm
              wrote on last edited by
              #6

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

              R 1 Reply Last reply
              0
              • R rstockm

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

                R Offline
                R Offline
                rstockm
                wrote on last edited by
                #7

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

                girishG 1 Reply Last reply
                0
                • R rstockm

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

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

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

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search