Comments (13)
Still going to work on this to make env variables for this a thing 🤔
from soketi.
No it is not, but it's very easy to do with the JSON (in addition to your environment variables).
Create a file called config.json
on your server which should be accessible by the user running Soketi with the following contents:
{
"database.redis.tls": {}
}
Instead of running just soketi start
, change it to soketi start --config=/home/soketi/config.json
(change the path to the config.json
to where you placed it) and then you can use a Redis host using TLS (like a Digital Ocean managed Redis instance).
from soketi.
@mackensiealvarezz I FIGURED YOUR ISSUE OUT
I've been going through this myself trying to figure out how to do this (TLS on Redis)
- name: soketi
image: quay.io/soketi/soketi:0.32.2-16-alpine
command:
- node
- /app/bin/server.js
- start --config=/etc/configws/config.json
is an incorrect way of specifying the command block for a docker-compose config. Instead, you need to separate your last line!!!!!
- name: soketi
image: quay.io/soketi/soketi:0.32.2-16-alpine
command:
- node
- /app/bin/server.js
- start
- --config=/etc/configws/config.json
This worked for me! Quite literally one of the worst experiences troubleshooting Docker I have ever had.
(sorry unrelated to issue at hand, but will prevent someone from troubleshooting Docker + Soketi for a few hours)
from soketi.
Is there any update on allowing to configure TLS using an environment variable? ☝️
from soketi.
I think I'll start implementing support for JSON-based configurations as files. This way it's better to configure nested values 🤔 (https://github.com/soketi/soketi/projects/1#card-64718909)
from soketi.
I think that environment variables wouldn't be a great choice for complex configurations. I don't really know why I started doing that in the first place, but having a JSON file that can be configured would be easier.
{
"database.redis.tls": { ... }
}
soketi start --config=/path/to/config.json
from soketi.
Honestly having it makes setting up a server really quick and easy... so I like having the JSON option but would not call the env variables bad honestly.
Also for the TLS option, it just needs to be an empty object so there is not much to configure unless you also want to implement reading files from disk.
from soketi.
Any update on allowing env variables for this?
from soketi.
Is there any way of doing this with environment variables ?
from soketi.
I had to postpone this issue. For now, the config should work perfectly fine.
from soketi.
I'm using the docker image inside of my helm chart. How can I pass this command? It looks like the command automatically runs when the container starts.
I tried this but it didn't work
- name: soketi
image: quay.io/soketi/soketi:0.32.2-16-alpine
command:
- node
- /app/bin/server.js
- start --config=/etc/configws/config.json
from soketi.
Have you injected the file in the pod?
from soketi.
Yes, I created a custom configmap with:
{
"database.redis.tls": {}
}
and mounted it to /etc/configws/config.json
I also exec into the pod and confirmed the file was there. I tried to also exec into the pod and run node server.js start --config=/etc/configws/config.json. When i did that, the pod just terminates and crashes
from soketi.
Related Issues (20)
- [BUG] Same port bug and or bug behind kubernetes LB? HOT 2
- [REQUEST] Statistic Collection for Dashboard project (link inside)
- soketi exec_curl error: "OpenSSL/1.1.1u: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure"
- [DOCUMENTATION] Docker tag 1-16-alpine does not work slash does not exist HOT 1
- [REQUEST] Heroku deployment example HOT 1
- the Soketi project is abandoned HOT 9
- [BUG] webhook Message event handler not implemented HOT 2
- configuration of ssl on server HOT 3
- How to install soketi in windows 11 HOT 9
- Sorry, you have been blocked HOT 1
- [BUG] dash.soketi.app is down (522) HOT 5
- Cannot read properties of undefined (reading 'includes') HOT 2
- [BUG] Cannot get users count for presence channels HOT 1
- [REQUEST] ability to use SSL for mysql
- [REQUEST] Implement watchlist
- [REQUEST] Preventing down docker server
- [BUG] Socketi Dashboard Down HOT 1
- Has anyone managed to run Soketi on FreeBSD?
- The JS client connects but Pusher's official Java client does not.
- [BUG] Not found any messages saved in Redis when change adapter driver to redis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soketi.