Skip to content

Commit 419fe32

Browse files
committed
fix(e2e): KTL-4235: update reverse-proxy config to generate nginx default.conf dynamically
1 parent abf5439 commit 419fe32

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

docker-compose-e2e.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
11
services:
22
reverse-proxy:
33
image: nginx:stable-alpine
4-
command: ["nginx", "-g", "daemon off; error_log /dev/null;"]
4+
command: |
5+
sh -c '
6+
cat > /etc/nginx/conf.d/default.conf <<EOF
7+
server {
8+
listen 80;
9+
listen [::]:80;
10+
11+
access_log off;
12+
13+
location / {
14+
root /usr/share/nginx/html;
15+
index index.html index.htm;
16+
}
17+
18+
location = /50x.html {
19+
root /usr/share/nginx/html;
20+
}
21+
}
22+
EOF
23+
nginx -g "daemon off; error_log /dev/null;"
24+
'
25+
ports:
26+
- "3000:80"
527
networks:
628
- test-network
729
volumes:

0 commit comments

Comments
 (0)