Coder Social home page Coder Social logo

Redis URL improvement about send HOT 8 CLOSED

timvisee avatar timvisee commented on July 18, 2024
Redis URL improvement

from send.

Comments (8)

timvisee avatar timvisee commented on July 18, 2024 2

I've now added all desired variables: REDIS_{HOST,PORT,USER,PASSWORD,DB}.

I've released this as part of v3.4.11.

It should be available when this pipeline succeeds: https://gitlab.com/timvisee/send/-/pipelines/305718044

from send.

skorokithakis avatar skorokithakis commented on July 18, 2024 1

Separate variables are good too, as long as I can specify all of them (host/port/username/pw/db).

from send.

timvisee avatar timvisee commented on July 18, 2024

You can also set the port and password through a separate variable:

send/server/config.js

Lines 62 to 76 in 385ac59

redis_host: {
format: String,
default: 'localhost',
env: 'REDIS_HOST'
},
redis_port: {
format: Number,
default: 6379,
env: 'REDIS_PORT'
},
redis_password: {
format: String,
default: '',
env: 'REDIS_PASSWORD'
},

But I agree that supporting the more conventional URL would be better.

from send.

skorokithakis avatar skorokithakis commented on July 18, 2024

Oh, that's good enough, thanks! I'm trying to set up Send using Compose at the moment, and this seems adequate.

I don't know if you'd be interested to add support, but I wrote a tool for easier deployment of apps such as this one. It's still early, but it's quite useful to me, at least: https://pypi.org/project/docker-harbormaster/

from send.

timvisee avatar timvisee commented on July 18, 2024

Oh, that's good enough, thanks!

Great. I'll leave it open as tracking issue for Redis URL support to be implemented.

I don't know if you'd be interested to add support, but I wrote a tool for easier deployment of apps such as this one. It's still early, but it's quite useful to me, at least: https://pypi.org/project/docker-harbormaster/

Sounds cool. What would 'adding support' mean, having to provide a compose file?

You might find this template useful: https://github.com/timvisee/send-docker-compose

from send.

skorokithakis avatar skorokithakis commented on July 18, 2024

Yes, it's just providing a compose file with the {{ HM_DATA_DIR }}/my_data:/some_data_dir volumes defined.

Then you could tell people to just add:

repositories:
  timvisee-send:
    url: https://github.com/timvisee/send.git

to their config and it would be automatically spun up. It's probably too early for me to push it very hard, I was just wondering whether something like this would be interesting to app developers.

from send.

pirate avatar pirate commented on July 18, 2024

I added more documentation to the Docker / Docker Compose configs for the REDIS_HOST, REDIS_PORT, and REDIS_PASSWORD options here:

Personally I don't think Redis URL support is worth adding, given these options are already present. But I don't have strong opinions either way as long as separate vars stay supported.

imo a higher priority task is to add a REDIS_DB option to select which Redis DB to use e.g. 0, 1, etc. (ability to specify DB no. would also be required to support Redis URLs anyway).

from send.

timvisee avatar timvisee commented on July 18, 2024

I wonder what the more conventional approach would be?

I've mostly seen separate variables, but maybe Redis URLs are used elsewhere. I'd be happy with both.

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.