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. Stirling-PDF
  3. Stirling-PDF Customization

Stirling-PDF Customization

Scheduled Pinned Locked Moved Solved Stirling-PDF
13 Posts 4 Posters 4.7k 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.
    • V Offline
      V Offline
      Vidmid
      wrote on last edited by
      #1

      For the Stirling-PDF application, How can I make customization done properly?

      On this file: /app/data/env.sh
      No matter what I add it does not go live and gets overwritten by the script's default values (I made sure to restart the app as well).

      Here is what I have there:

      export APP_LOCALE=en-GB
      export APP_HOME_NAME="My site name"
      export APP_HOME_DESCRIPTION="My site description."
      export APP_NAVBAR_NAME="site title"

      but none of these values goes live.

      Can anyone help with this please?

      Thanks,

      girishG 1 Reply Last reply
      0
      • V Vidmid

        For the Stirling-PDF application, How can I make customization done properly?

        On this file: /app/data/env.sh
        No matter what I add it does not go live and gets overwritten by the script's default values (I made sure to restart the app as well).

        Here is what I have there:

        export APP_LOCALE=en-GB
        export APP_HOME_NAME="My site name"
        export APP_HOME_DESCRIPTION="My site description."
        export APP_NAVBAR_NAME="site title"

        but none of these values goes live.

        Can anyone help with this please?

        Thanks,

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

        @Vidmid can reproduce this. Stirling has moved away from env vars and into yml based configuration in it's last release. I am fixing up the package.

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          @Vidmid please check latest package.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            froodle
            wrote on last edited by
            #4

            So environment variables are still supposed in original docker image if needed not sure about cloudron implementation

            https://github.com/Frooodle/Stirling-PDF/issues/333#issuecomment-1703854389

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vidmid
              wrote on last edited by
              #5

              Hi @girish,
              Thanks a lot for looking into this so quickly.
              I just checked my dashboard and not seeing any new update for the app here: https://pic.li/P2zx8
              Can you please let me know how I can check for the latest package? Sorry this is my first time using cloudron

              Thank you,

              girishG 1 Reply Last reply
              0
              • V Vidmid

                Hi @girish,
                Thanks a lot for looking into this so quickly.
                I just checked my dashboard and not seeing any new update for the app here: https://pic.li/P2zx8
                Can you please let me know how I can check for the latest package? Sorry this is my first time using cloudron

                Thank you,

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

                @Vidmid Did you edit the configuration file as per https://docs.cloudron.io/apps/stirling-pdf/#custom-configuration ?

                @froodle thanks! Indeed, our docker implementation does not have env variable support. BTW, where are the environment variables read ? For example, the yml file properties of say GroupsToRemove are read in https://github.com/Frooodle/Stirling-PDF/blob/78bfa84afd635337caa63c56f167ed6ea39286cf/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java#L212 . But where is the env var GROUPS_TO_REMOVE process? I couldn't find it.

                F 1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  I edit the file like this:

                  image.png

                  After saving and restarting the app:

                  image.png

                  I 1 Reply Last reply
                  2
                  • girishG girish

                    @Vidmid Did you edit the configuration file as per https://docs.cloudron.io/apps/stirling-pdf/#custom-configuration ?

                    @froodle thanks! Indeed, our docker implementation does not have env variable support. BTW, where are the environment variables read ? For example, the yml file properties of say GroupsToRemove are read in https://github.com/Frooodle/Stirling-PDF/blob/78bfa84afd635337caa63c56f167ed6ea39286cf/src/main/java/stirling/software/SPDF/config/EndpointConfiguration.java#L212 . But where is the env var GROUPS_TO_REMOVE process? I couldn't find it.

                    F Offline
                    F Offline
                    froodle
                    wrote on last edited by
                    #8

                    @girish ahh this is bad wording on my part
                    This is no standalone env for group to remove it follows the same naming from the yml file config
                    Which does auto get overridden by env variables of same path name

                    Will update this readme thanks

                    1 Reply Last reply
                    1
                    • girishG girish

                      I edit the file like this:

                      image.png

                      After saving and restarting the app:

                      image.png

                      I Offline
                      I Offline
                      IniBudi
                      wrote on last edited by
                      #9

                      Hi @girish, I tried to customize and when I restarted the app. All the customization is gone and replaced with the default setting. How to save and restart it without removing the customization data?

                      1 Reply Last reply
                      0
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #10

                        @IniBudi are you editing /app/data/configs/settings.yml ? This file should not be overwritten on restart. Is that what is happenning?

                        I 1 Reply Last reply
                        0
                        • girishG girish

                          @IniBudi are you editing /app/data/configs/settings.yml ? This file should not be overwritten on restart. Is that what is happenning?

                          I Offline
                          I Offline
                          IniBudi
                          wrote on last edited by
                          #11

                          @girish yes the file is overwritten when I restart the apps

                          1 Reply Last reply
                          0
                          • girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #12

                            I can't reproduce this atleast. Settings are persisted across restart . If you can reproduce this on our demo cloudron, I can take a look.

                            1 Reply Last reply
                            1
                            • I Offline
                              I Offline
                              IniBudi
                              wrote on last edited by
                              #13

                              I just checked and I think the problem is solved. Thank you Girish

                              1 Reply Last reply
                              1
                              • girishG girish marked this topic as a question on
                              • girishG girish has marked this topic as solved on
                              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