Commit ffdb60e
authored
fix: enable IPv6 dual-stack for OSS, Plus, and unprivileged images (#483)
* Add IPv6 support to default.conf.template for OSS/Plus images
The OSS and Plus base images were missing IPv6 support.
The nginx base image's IPv6 enabler script modifies /etc/nginx/conf.d/default.conf,
but the template processing (which runs after) overwrites this file,
removing the IPv6 listen directive.
This fix adds both IPv4 and IPv6 listen directives directly to the
source template, ensuring they are present in the final configuration
for OSS and Plus image variants.
Fixes #453
Signed-off-by: Jesse Awan <[email protected]>
* Add IPv6 support to unprivileged Docker image
The unprivileged image needs to replace port 80 with port 8080
(since unprivileged users cannot bind to port 80).
This fix modifies the sed commands to replace the port 80 listen
directives (both IPv4 and IPv6) with port 8080 equivalents,
ensuring dual-stack support without privilege issues.
Fixes #339
Signed-off-by: Jesse Awan <[email protected]>
---------
Signed-off-by: Jesse Awan <[email protected]>1 parent ca5c7db commit ffdb60e
File tree
2 files changed
+4
-1
lines changed- common/etc/nginx/templates
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments