Public Repository

Last pushed: 2 years ago
Short Description
stud with TLS 1.2 enabled
Full Description

I use this image to add TLS to my meteor apps, therefore the backend port is 3000.

  • Stud setup
    stud frontend port is 443
    stud backend host is app:3000 (default port for meteor apps)
    The cert is path /opt/certs/ssl.pem
    The configuration is /opt/stud/stud.conf

  • Usage:
    First, start the app, for example docker run -d app

Eventually generate a self signed certificate:

mkdir certs
cd certs
openssl req -x509 -new -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem
cat key.pem cert.pem > ssl.pem
cd ..


cd certs
docker run --name stud -p 3443:443 --link app:app -v $(pwd):/opt/certs -d remynoulin/stud

To change the backend port from 3000 or the hostname for the app, modify the stud configuration:

mkdir stud
docker run -t --rm remynoulin/stud cat /opt/stud/stud.conf > stud/stud.conf

edit stud/stud.conf

docker run --name stud -p 3443:443 --link chat:app -v $(pwd):/opt/certs -v $(pwd)/stud:/opt/stud -d remynoulin/stud

Docker Pull Command

Comments (3)
a year ago

Do you have any ide how to connect hubot-rocketchat using stud?

a year ago

Give the path to your ssl.pem file explicitly in the docker run command:

docker run --name stud -p 3443:443 --link app:app -v PATH_TO_SSL_PEM:/opt/certs -d remynoulin/stud

a year ago

hello, I followed your instructions to have ssl on rocketchat. Everything worked fine. then I tried to restrart the containers db chat and stud, and now I have this issue :

<stud : excited (1) : unable to stat x509 certificate PEM file /opt/certs/ssl.pem

do you have any idea ?