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

    Solved Branding / Custom pages not working

    Support
    branding customize
    5
    10
    341
    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.
    • M
      msbt App Dev last edited by

      Hi there! Just tried to customize the not-responding template by creating a file in /home/yellowtent/boxdata/custom_pages/app_not_responding.html as suggested here, but it doesn't seem to get registered. I did chown the folder with yellowtent and even restarted the server, but neither seemed to have done the trick. Am I missing something?

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

        A server restart should not have been required. Can you check your nginx logs? Also just to make sure, that page should also be served up when you simply stop a working app. Just for testing the custom page here.

        1 Reply Last reply Reply Quote 0
        • M
          msbt App Dev last edited by

          Yea the reboot was just to make sure, I only restarted box before, that didn't work so I tried restarting the server. I've tried by restarting an app instead of stopping it, but it's probably the same thing with either option.

          What exactly am I looking for? (sidenote: system/nginx/logs is empty and "Download Full Logs" results in a 404.)

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

            @msbt I suspect this is because the app is not using the latest nginx config. Go to the Location view and just click save to re-generate the latest nginx config. After that, stop the app and you should see the not responding page.

            1 Reply Last reply Reply Quote 0
            • M
              msbt App Dev last edited by

              nice catch @girish, I need to regenerate each app config manually, then it works. is there a global cmd to regenate all at once?

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

                @msbt unfortunately, no. But new apps will get latest config.

                1 Reply Last reply Reply Quote 0
                • mdreira
                  mdreira translator last edited by mdreira

                  Hi!

                  When I create an app_not_responding.html page to use as a custom page and add an image in the html code that I upload to the same directory (/home/yellowtent/boxdata/custom_pages/) , then image doesn't load. I can see the text, but not image.

                  I'm putting this code: <img src = "sad-dog.jpg" alt = "upps" width = "30%">

                  The html and the image have the appropriate permissions and as owner I have set yellowtent.


                  EDITED: Finally I created a folder where I put the images inside, I redirected them in the code and it worked.

                  <img src = "/images/sad-dog.jpg" alt = "upps" width = "30%">

                  micmc girish 2 Replies Last reply Reply Quote 4
                  • micmc
                    micmc @mdreira last edited by micmc

                    @mdreira said in Branding / Custom pages not working:

                    Hi!

                    When I create an app_not_responding.html page to use as a custom page and add an image in the html code that I upload to the same directory (/home/yellowtent/boxdata/custom_pages/) , then image doesn't load. I can see the text, but not image.

                    I'm putting this code: <img src = "sad-dog.jpg" alt = "upps" width = "30%">

                    The html and the image have the appropriate permissions and as owner I have set yellowtent.


                    EDITED: Finally I created a folder where I put the images inside, I redirected them in the code and it worked.

                    <img src = "images/sad-dog.jpg" alt = "upps" width = "30%">

                    Way to go 🙂

                    The best way to learn is to dig even deeper once the support question is posted.

                    I've always applied this principle all long my IT career, and 80-90% of the time I find the solution before the tech-supp replies. No kidding.

                    And posting your own solution here you help a bunch more who will not need to post that question. Only read and apply!

                    Regards,
                    Andy


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

                    mdreira 1 Reply Last reply Reply Quote 2
                    • mdreira
                      mdreira translator @micmc last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • girish
                        girish Staff @mdreira last edited by

                        @mdreira probably a long term solution to embed images is to also embed it inline in the html. You can use a tool like https://base64.guru/converter/encode/image/png

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