Coder Social home page Coder Social logo

Comments (2)

l4rm4nd avatar l4rm4nd commented on August 17, 2024 3

The environment variables allow for a lot of branding and customizations. Here some examples for docker compose:

    environment:
      - NODE_ENV=production # default is development
      - DETECT_BASE_URL=true
      #- BASE_URL=https://send.example.com # optional; if used then protocol handler (http/https) is mandatory
      - PORT=1234
      - REDIS_HOST=redis
      # For local uploads storage
      - FILE_DIR=/uploads
      # To customize upload limits
      - EXPIRE_TIMES_SECONDS=3600,86400,604800,2592000,31536000 # Expire time options to show in UI dropdown, e.g. 3600,86400,604800,2592000,31536000
      - DEFAULT_EXPIRE_SECONDS=604800 # Default expire time in UI (defaults to 86400)
      - MAX_EXPIRE_SECONDS=31536000 # Maximum upload expiry time in seconds (defaults to 604800 aka 7 days)
      - DOWNLOAD_COUNTS=1,2,5,10,50 # Download limit options to show in UI dropdown, e.g. 10,1,2,5,10,15,25,50,100,1000
      - DEFAULT_DOWNLOADS=10      
      - MAX_DOWNLOADS=10 # Maximum number of downloads (defaults to 100)
      - MAX_FILE_SIZE=2684354560 # Maximum upload file size in bytes (defaults to 2147483648 aka 2GB)
      # ----------------------------------------------------------------------------------
      # Custom Branding; see https://github.com/timvisee/send/blob/master/server/config.js
      # ----------------------------------------------------------------------------------
      #- CUSTOM_TITLE=Send
      #- CUSTOM_DESCRIPTION=Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.
      #- CUSTOM_FOOTER_TEXT=
      #- CUSTOM_FOOTER_URL=
      #- CUSTOM_LOCALE=
      #- UI_CUSTOM_ASSETS_ANDROID_CHROME_192PX=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_ANDROID_CHROME_512PX=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_APPLE_TOUCH_ICON=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_FAVICON_16PX=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_FAVICON_32PX=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_ICON=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_SAFARI_PINNED_TAB=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_FACEBOOK=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_TWITTER=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_ASSETS_WORDMARK=mylogo.png # use a custom logo; if NODE_ENV=production you must use an internal image; otherwise any http(s) url works too
      #- UI_CUSTOM_CSS=
      #- UI_COLOR_PRIMARY=0a84ff
      #- UI_COLOR_ACCENT=003eaa
      #- SEND_FOOTER_CLI_URL=https://github.com/timvisee/ffsend
      #- SEND_FOOTER_DMCA_URL=
      #- SEND_FOOTER_SOURCE_URL=https://github.com/timvisee/send
      # ----------------------------------------------------------------------------------

Custom description seems not to work though. This is a bug.

from send.

timvisee avatar timvisee commented on August 17, 2024

Yes, setting those environment variables is the right way to do it.

If your desired options are not in there, I'd recommend to change it in source code and build from source. Also feel free to add a pull request for a new option.

Closing this now since I think this is resolved. Feel free to open it again.

from send.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.