xirixiz / dsmr-reader-docker

DSMR Reader in Docker.
https://hub.docker.com/r/xirixiz/dsmr-reader-docker
112 stars 33 forks source link

ENABLE_NGINX_SSL does not work anymore #334

Closed arjanvanderveen closed 1 year ago

arjanvanderveen commented 1 year ago

Support guidelines

I've found an issue and checked that ...

Description

When using the environment variable ENABLE_NGINX_SSL set to true, port 443 is not enabled in the Nginx config, due to a faulty sed command.

Expected behaviour

Nginx is listening on port 443

Actual behaviour

Nginx is listening on port 80

Steps to reproduce

Set the environment variable ENABLE_NGINX_SSL=true Start the docker The container is listening on port 80 and not port 443

Docker info

n/a

Version

Docker compose

n/a

Container logs

n/a

Additional info

https://github.com/xirixiz/dsmr-reader-docker/commit/d7e77318046baf0da9c151f1423644bc8a1765f0#commitcomment-110488906

When i change the file /etc/cont-init.d/20-set-app-defaults back to the previous code, it works correctly.

xirixiz commented 1 year ago

Ja, ik denk dat ik het hele nginx config stuk eruit ga slopen. Het is denk ik beter dat wanneer je een specifieke config wenst, dat je die dan mount in de container. Het geknip en geplak met bash is onbetrouwbaar helaas.

Rolling back.

arjanvanderveen commented 1 year ago

Kan het me goed voorstellen. sed is tricky op momenten.

xirixiz commented 1 year ago

Afschuwelijk is het hahaha 😄

arjanvanderveen commented 1 year ago

Je kan ook nginx includes gebruiken ipv sed. Het is maar een ideetje hoor.