Example of NGINX config
server {
listen 443 ssl;
ssl_certificate /etc/nginx/certs/server.crt;
ssl_certificate_key /etc/nginx/certs/server.key;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ~* \.(js|jpg|png|css)$ {
root /usr/share/nginx/html/;
}
location /janus {
proxy_pass http://ip-from-step-2:8088;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Example of NGINX Dockerfile
FROM nginx
COPY /certs/ etc/nginx/certs
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
COPY html /usr/share/nginx/html
EXPOSE 443
Example of Janus Dockerfile
FROM canyan/janus-gateway:master
COPY ./janus.jcfg ./usr/local/etc/janus/janus.jcfg
Hope this will save time to every WebRTC enthusiast like me.
ENJOY this great product Janus!