From f427f779ffbefe35990c5fe913b2800416b705ac Mon Sep 17 00:00:00 2001 From: Colin Seymour Date: Mon, 16 Sep 2024 10:20:37 +0000 Subject: [PATCH 1/3] Update npm --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b4ff681..32575cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,8 @@ RUN apt-get update && apt-get install -y \ && curl -Ls "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | tar xz --strip 1 -C /tmp/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ - && rm -rf /tmp/bashio + && rm -rf /tmp/bashio \ + && npm install -g npm@latest COPY rootfs / RUN chmod a+x /etc/services.d/*/run /etc/services.d/*/finish From 9f391e2d42dd3564b1886bd00813448b87d7672b Mon Sep 17 00:00:00 2001 From: Colin Seymour Date: Mon, 16 Sep 2024 10:21:00 +0000 Subject: [PATCH 2/3] Add default nginx.conf --- rootfs/etc/nginx/nginx.conf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 rootfs/etc/nginx/nginx.conf diff --git a/rootfs/etc/nginx/nginx.conf b/rootfs/etc/nginx/nginx.conf new file mode 100644 index 0000000..31aaf99 --- /dev/null +++ b/rootfs/etc/nginx/nginx.conf @@ -0,0 +1,27 @@ +worker_processes auto; +pid /tmp/nginx.pid; +error_log /tmp/error.log; +include /etc/nginx/modules-enabled/*.conf; + +events { + worker_connections 768; +} + +http { + client_body_temp_path /tmp/client_temp; + proxy_temp_path /tmp/proxy_temp_path; + fastcgi_temp_path /tmp/fastcgi_temp; + uwsgi_temp_path /tmp/uwsgi_temp; + scgi_temp_path /tmp/scgi_temp; + sendfile on; + tcp_nopush on; + types_hash_max_size 2048; + include /etc/nginx/mime.types; + default_type application/octet-stream; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE + ssl_prefer_server_ciphers on; + access_log /tmp/access.log; + gzip on; + include /etc/nginx/conf.d/*.conf; + include /etc/nginx/sites-enabled/*; +} \ No newline at end of file From 0f58ec30f335d1cc9455c84e331c7c415076e0d7 Mon Sep 17 00:00:00 2001 From: Colin Seymour Date: Mon, 16 Sep 2024 10:21:09 +0000 Subject: [PATCH 3/3] Log starting --- rootfs/etc/services.d/nginx/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/services.d/nginx/run b/rootfs/etc/services.d/nginx/run index 394e955..cbc41e0 100644 --- a/rootfs/etc/services.d/nginx/run +++ b/rootfs/etc/services.d/nginx/run @@ -1,5 +1,6 @@ #!/command/with-contenv bashio # -*- bash -*- # shellcheck shell=bash -mkdir /run/nginx + +bashio::log.info "Starting NGINX..." exec nginx -g 'daemon off;error_log /proc/1/fd/1 error;' \ No newline at end of file