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

    add custom javascript to cloudron dashboard

    Feature Requests
    7
    12
    257
    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.
    • nennogabriel
      nennogabriel last edited by girish

      Cloudron provide an easy way to have lots of business tools online, but sometimes the costumers needs a little help. I wish to put my business support chat on my cloudrons costumers.
      If was possible to put a script tag to make my chatwood working inside my.domain.com would be nice.

      jdaviescoates BrutalBirdie 2 Replies Last reply Reply Quote 7
      • jdaviescoates
        jdaviescoates @nennogabriel last edited by

        @nennogabriel said in add custom javascript to cloudron app.:

        If was possible to put a script tag to make my chatwood working inside my.domain.com would be nice.

        Nice idea. I guess other code snippets could be used to, e.g. either for other chat support tools, and/ or perhaps analytics stuff too.

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply Reply Quote 5
        • BrutalBirdie
          BrutalBirdie Staff @nennogabriel last edited by

          @nennogabriel @staff this might be a good pick.

          Just for clarification, you are talking about deploying custom java script to cloudron it self and not other apps, right?
          Since your title states add custom javascript to cloudron app which might be a bit misleading.

          Like my work? Consider donating a beer 🍻 Cheers!

          micmc nennogabriel 2 Replies Last reply Reply Quote 3
          • micmc
            micmc @BrutalBirdie last edited by

            @BrutalBirdie I agree this is one of a good idea and suitable as well. And I believe he meant to add the support script to the cloudron box indeed. At least this is what is the good idea.


            https://marketingtechnology.agency
            For cutting edge web technologies

            1 Reply Last reply Reply Quote 2
            • nennogabriel
              nennogabriel @BrutalBirdie last edited by

              @BrutalBirdie yes. it could be a little box in "brand" menu. just to add a simple javacript to all pages, like footer.

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

                Generally just injecting javascript into the dashboard is doable, however if we would add this feature, still adding stuff like a chatwoot chat would not work unless we also add a way to configure the CSP headers sent for the dashboard. Currently those are tightly locked to domains we use and those are fixed. So without that, I am not sure how useful adding snippets would be and adding a way to configure the CSP headers is a lot more work, as we have to regenerate the nginx configs accordingly.

                robi nennogabriel 2 Replies Last reply Reply Quote 2
                • robi
                  robi @nebulon last edited by

                  @nebulon these would not be for any cloudron.io domains, but for user my.server.tld domains.

                  Chatwoot configs don't require CSP from what I can tell.

                  Life of Advanced Technology

                  nebulon 1 Reply Last reply Reply Quote 3
                  • luanc202
                    luanc202 last edited by

                    that would be nice even if it's not for a chatwoot or any other chat widget, analytics and other scripts can make good use of that.

                    hope we get that feature soon.

                    1 Reply Last reply Reply Quote 1
                    • nebulon
                      nebulon Staff @robi last edited by

                      @robi said in add custom javascript to cloudron dashboard:

                      Chatwoot configs don't require CSP from what I can tell.

                      The dashboard being the main site will determine through CSP headers what can be done, and currently either loading or iframing pages on other domains is not allowed, nor is doing REST calls of sorts against other domains. So I am not sure how chatwoot would workaround those.

                      robi 1 Reply Last reply Reply Quote 0
                      • robi
                        robi @nebulon last edited by robi

                        @nebulon it would remain in the server.tld domain, not others. Hence chatwoot.server.tld would just be a subdomain of the dashboard as all apps are (on that domain),

                        Life of Advanced Technology

                        1 Reply Last reply Reply Quote 0
                        • nennogabriel
                          nennogabriel @nebulon last edited by nennogabriel

                          @nebulon I understand. Be secure is a lot more important than some customization.

                          I will use the branding to show an external link to my website where it has the chat support. thank you

                          So, if possible, would be nice to have a block message on top of the webpage os my.domain.com like the footer, in markdown too. So I can write a simple and clear message to all costumers when they access the platform.

                          jdaviescoates 1 Reply Last reply Reply Quote 2
                          • jdaviescoates
                            jdaviescoates @nennogabriel last edited by

                            @nennogabriel that's another nice idea!

                            I use Cloudron with Gandi & Hetzner

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