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. Support
  3. Branding / Custom pages not working

Branding / Custom pages not working

Scheduled Pinned Locked Moved Solved Support
brandingcustomize
10 Posts 5 Posters 1.7k Views 5 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.
  • M Offline
    M Offline
    msbt
    App Dev
    wrote on last edited by
    #1

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

      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
      0
      • M Offline
        M Offline
        msbt
        App Dev
        wrote on last edited by
        #3

        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
        0
        • girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #4

          @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
          0
          • M Offline
            M Offline
            msbt
            App Dev
            wrote on last edited by
            #5

            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
            0
            • girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • mdreiraM Offline
                mdreiraM Offline
                mdreira
                translator
                wrote on last edited by mdreira
                #7

                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%">

                micmcM girishG 2 Replies Last reply
                4
                • mdreiraM 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%">

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

                  @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

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

                  mdreiraM 1 Reply Last reply
                  2
                  • micmcM 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

                    mdreiraM Offline
                    mdreiraM Offline
                    mdreira
                    translator
                    wrote on last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • mdreiraM 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%">

                      girishG Do not disturb
                      girishG Do not disturb
                      girish
                      Staff
                      wrote on last edited by
                      #10

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