Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration of ssl on server #1116

Open
darkkLUCIFER opened this issue Feb 13, 2024 · 3 comments
Open

configuration of ssl on server #1116

darkkLUCIFER opened this issue Feb 13, 2024 · 3 comments

Comments

@darkkLUCIFER
Copy link

i installed soketi on my server and get ssl for it with Let’s Encrypt and in file .env set the path of the ssl , but it when i want to connect to my server with wss, it failed
what should i do?
it better to say what is the best way to get ssl and after that where set the path of cert and key(in .json or .env)?

@behzad-azizan
Copy link

I have the same problem
@rennokki @stayallive @alexatnewton @Daynnnnn @dkulyk

@99Arrzel
Copy link

99Arrzel commented Feb 20, 2024

Im trying to mount it with as a volume in /app/dist/server/certs using
etc/letsencrypt/live/{DOMAIN}/
And then using the env vars

BUT IT DOESNT WORK
It crashes, with the error:

📡 soketi initialization.... ⚡ Initializing the HTTP API & Websockets Server... /app/dist/server.js:241 ? uWS.SSLApp({ ^

@frantischek
Copy link

It works with the docker container. From my docker-compose.yml:

    volumes:
      - '/etc/letsencrypt/live/pusher.xxx.me/fullchain.pem:/etc/ssl/certs/fullchain.pem'
      - '/etc/letsencrypt/live/pusher.xxx.me/privkey.pem:/etc/ssl/private/privkey.pem'

and later:

    environment:
      - SOKETI_SSL_CERT=/etc/ssl/certs/fullchain.pem
      - SOKETI_SSL_KEY=/etc/ssl/private/privkey.pem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants