dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Support custom SSL certificates for the dashboard

Open benniekiss opened this issue 7 months ago • 2 comments

This PR refactors the init_cert.sh script in the docker container to support using custom SSL certificates.

I've added two env-vars, NGINX_SSL_CERT and NGINX_SSL_KEY, which when set, will configure the nginx default.conf with the provided port and certificate paths. When LETSENCRYPT_DOMAIN is set, NGINX_SSL_CERT and NGINX_SSL_KEY are ignored.

I've also made it so that the dashboard port can be changed without providing certificates. This way, setting NGINX_SSL_PORT will change the nginx listen port. It may be worth considering changing the env-var name.

This partially closes https://github.com/netbirdio/netbird/issues/2242

benniekiss avatar Jul 11 '24 11:07 benniekiss