Skip to content

Commit ffbe71a

Browse files
committed
Web: fix running with port 80 on k8s (again)
1 parent d668d20 commit ffbe71a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

web-base/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ FROM common:${ALPINE_VERSION}-nginx AS base
2121
# Copy configuration files
2222
# - nginx
2323
COPY config/nginx/http.d/ /etc/nginx/http.d/
24+
# - s6-overlay
25+
COPY config/s6-overlay /etc/s6-overlay/s6-rc.d/
2426
# - init
2527
COPY scripts/ /scripts/
2628
COPY --from=build /app/import-meta-env /usr/bin/import-meta-env

web-base/config/nginx/http.d/default.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ server {
44
server_name _;
55

66
# Legacy, remove this when everything is migrated to 8080
7-
listen 80;
8-
listen [::]:80;
7+
listen 80 default_server;
8+
listen [::]:80 default_server;
99

1010
root /app/www;
1111
index index.html;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/execlineb -P
2+
3+
# Note: this overrides the normal nginx runner, because we listen on port 80
4+
# Get rid of this after that legacy is cleaned up
5+
nginx

0 commit comments

Comments
 (0)