Skip to content

Testing against instance with SSL #368

Closed Answered by joente
stefanak-michal asked this question in Q&A
Discussion options

You must be logged in to vote

I've created a Dockerfile for TLS/SSL support in the dockssl branch: https://github.com/thingsdb/ThingsDB/blob/dockssl/docker/tls.Dockerfile

Build the image:

docker build -t thingsdbtls  . -f docker/tls.Dockerfile

You need to create a certificate, see: https://github.com/cesbit/tlsproxy/blob/main/README.md

Save the server.crt and server.key in ~/certificates

Next, start the container:

docker run \
    -d \
    -p 443:443 \
    -p 9443:9443 \
    -p 8080:8080 \
    -v ~/thingsdb-data:/data \
    -v ~/thingsdb-modules:/modules \
    -v ~/certificates:/certificates \
    thingsdbtls \
    --init

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@joente
Comment options

@joente
Comment options

Answer selected by stefanak-michal
Comment options

You must be logged in to vote
7 replies
@stefanak-michal
Comment options

stefanak-michal Mar 29, 2024
Collaborator Author

@stefanak-michal
Comment options

stefanak-michal Mar 29, 2024
Collaborator Author

@joente
Comment options

@stefanak-michal
Comment options

stefanak-michal Mar 29, 2024
Collaborator Author

@joente
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants