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. Feature Requests
  3. add custom javascript to cloudron dashboard

add custom javascript to cloudron dashboard

Scheduled Pinned Locked Moved Feature Requests
12 Posts 7 Posters 1.8k Views 8 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.
  • nennogabrielN nennogabriel

    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.

    BrutalBirdieB Offline
    BrutalBirdieB Offline
    BrutalBirdie
    Partner
    wrote on last edited by
    #3

    @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 drink. Cheers!

    micmcM nennogabrielN 2 Replies Last reply
    3
    • BrutalBirdieB BrutalBirdie

      @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.

      micmcM Offline
      micmcM Offline
      micmc
      wrote on last edited by
      #4

      @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.

      Ignorance is not an excuse anymore!
      https://AutomateKit.com

      1 Reply Last reply
      2
      • BrutalBirdieB BrutalBirdie

        @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.

        nennogabrielN Offline
        nennogabrielN Offline
        nennogabriel
        wrote on last edited by
        #5

        @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
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #6

          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.

          robiR nennogabrielN 2 Replies Last reply
          2
          • nebulonN nebulon

            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.

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #7

            @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.

            Conscious tech

            nebulonN 1 Reply Last reply
            3
            • luanc202L Offline
              luanc202L Offline
              luanc202
              wrote on last edited by
              #8

              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
              1
              • robiR robi

                @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.

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #9

                @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.

                robiR 1 Reply Last reply
                0
                • nebulonN nebulon

                  @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.

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by robi
                  #10

                  @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),

                  Conscious tech

                  1 Reply Last reply
                  0
                  • nebulonN nebulon

                    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.

                    nennogabrielN Offline
                    nennogabrielN Offline
                    nennogabriel
                    wrote on last edited by nennogabriel
                    #11

                    @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.

                    jdaviescoatesJ 1 Reply Last reply
                    2
                    • nennogabrielN 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.

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #12

                      @nennogabriel that's another nice idea!

                      I use Cloudron with Gandi & Hetzner

                      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