aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Dockerfile1
-rw-r--r--README.md2
-rwxr-xr-xipv6.sh6
-rw-r--r--lighttpd.conf2
4 files changed, 10 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 2e2e493..9c872f5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,6 +24,7 @@ RUN addgroup -S lighttpd -g ${GID} && adduser -D -S -u ${UID} lighttpd lighttpd
24WORKDIR /www 24WORKDIR /www
25 25
26COPY lighttpd.conf /lighttpd.conf 26COPY lighttpd.conf /lighttpd.conf
27COPY ipv6.sh /etc/lighttpd/ipv6.sh
27COPY entrypoint.sh /entrypoint.sh 28COPY entrypoint.sh /entrypoint.sh
28COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/ 29COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/
29COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets 30COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets
diff --git a/README.md b/README.md
index d69796a..db2781d 100644
--- a/README.md
+++ b/README.md
@@ -97,6 +97,8 @@ If you would like to host Homer in a subfolder, (ex: *http://my-domain/**homer**
97* **`PORT`** (default: `8080`) 97* **`PORT`** (default: `8080`)
98If you would like to change internal port of Homer from default `8080` to your port choice. 98If you would like to change internal port of Homer from default `8080` to your port choice.
99 99
100* **`IPV6_DISABLE`** (default: null)
101Set to a non-empty value to disable listening on IPv6.
100 102
101#### With docker-compose 103#### With docker-compose
102 104
diff --git a/ipv6.sh b/ipv6.sh
new file mode 100755
index 0000000..c013ed6
--- /dev/null
+++ b/ipv6.sh
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3# Enable IPV6 if needed
4if test -z "$IPV6_DISABLE"; then
5 echo '$SERVER["socket"] == "[::]:" + env.PORT { }'
6fi
diff --git a/lighttpd.conf b/lighttpd.conf
index 2bf043f..a6e9ff5 100644
--- a/lighttpd.conf
+++ b/lighttpd.conf
@@ -1,7 +1,7 @@
1include "/etc/lighttpd/mime-types.conf" 1include "/etc/lighttpd/mime-types.conf"
2include_shell "/etc/lighttpd/ipv6.sh"
2 3
3server.port = env.PORT 4server.port = env.PORT
4$SERVER["socket"] == "[::]:" + env.PORT { }
5server.modules = ( "mod_alias" ) 5server.modules = ( "mod_alias" )
6server.username = "lighttpd" 6server.username = "lighttpd"
7server.groupname = "lighttpd" 7server.groupname = "lighttpd"