Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

Stirling-PDF Customization

Scheduled Pinned Locked Moved Stirling-PDF
8 Posts 3 Posters 101 Views
    • 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 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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to Vidmid 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 last edited by
    #3

    @Vidmid please check latest package.

    1 Reply Last reply
    0
  • F Offline
    F Offline
    froodle
    wrote 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 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
  • girishG Offline
    girishG Offline
    girish Staff
    replied to Vidmid 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 last edited by
    #7

    I edit the file like this:

    image.png

    After saving and restarting the app:

    image.png

    1 Reply Last reply
    1
  • F Offline
    F Offline
    froodle
    replied to girish 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

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Login

  • Don't have an account? Register

  • Login or register to search.