Closed arjanvanderveen closed 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.
Kan het me goed voorstellen. sed is tricky op momenten.
Afschuwelijk is het hahaha 😄
Je kan ook nginx includes gebruiken ipv sed. Het is maar een ideetje hoor.
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
Version
docker-compose --version
):uname -a
): Linux xirixiz-dsmr-reader 4.4.180+ #42962 SMP Sat Apr 8 00:14:23 CST 2023 x86_64 GNU/LinuxDocker compose
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.