Brand new sails new myapp.
Node version: v12.10.0
Sails version _(sails)_: 1.2.2
ORM hook version _(sails-hook-orm)_: 2.1.1
Sockets hook version _(sails-hook-sockets)_: 2.0.0
Organics hook version _(sails-hook-organics)_: 0.16.0
Grunt hook version _(sails-hook-grunt)_: UNINSTALLED
Uploads hook version _(sails-hook-uploads)_: NOT INSTALLED
DB adapter & version _(e.g. [email protected])_: [email protected]
Skipper adapter & version _(e.g. [email protected])_: NOT INSTALLED
My related dependencies:
"@sailshq/connect-redis": "^3.2.1",
"@sailshq/socket.io-redis": "^5.2.0",
"connect-redis": "3.3.2",
"machinepack-redis": "^2.0.2",
I have setup a managed redis cache on digitalocean. Digitalocean gave me a url to use to connect:
url: 'rediss://default:REMOVED_THIS_PASSWORD@my-new-app-sfo2-do-user-5053627-0.db.ondigitalocean.com:25061/0',
I think the solution is we need to implement this into sails - https://github.com/NodeRedis/node_redis/issues/1331#issuecomment-531601022
Somewhere around here - https://github.com/balderdashy/sails/blob/master/lib%2Fhooks%2Fsession%2Findex.js#L300
I created a stackoverflow on the topic, no help yet - https://stackoverflow.com/q/58109419/1828637
@Noitidart Thanks for posting! We'll take a look as soon as possible.
In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.
For help with questions about Sails, click here.
Oh to fix, I had to add to config/session.js this: tls: {} and it passes it through!
We should document this in the docs. I will try to get to it.
@Noitidart Thanks for taking the time to explore this and provide a workaround - much appreciated! Yes, updating documentation about this could help. If you'd like, feel free to provide us a PR with the updated information and we'll have it reviewed for updating the docs. All the best!
Thank you I will for sure do that! :)
I plan to also write a medium article detailing exactly how to do a deployment of sails onto digital ocean droplet with managed database and managed redis cache. :)
Most helpful comment
Thank you I will for sure do that! :)
I plan to also write a medium article detailing exactly how to do a deployment of sails onto digital ocean droplet with managed database and managed redis cache. :)