Skip to content

Commit f7ba337

Browse files
committed
fix: Use conf template instead of nginx conf
1 parent f468c84 commit f7ba337

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

packages/compas-open-scd/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM public.ecr.aws/nginx/nginx:1.29.1
22

3-
COPY nginx.conf /etc/nginx/nginx.conf
3+
COPY ./nginx/default.conf.template /etc/nginx/templates/default.conf.template
44
COPY build/. /usr/share/nginx/html
55

6+
ENV NGINX_PORT=8080
67
EXPOSE 8080
78

89
VOLUME /etc/nginx/

packages/compas-open-scd/nginx.conf

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
server {
2+
listen ${NGINX_PORT};
3+
listen [::]:${NGINX_PORT};
4+
server_name localhost;
5+
6+
location / {
7+
root /usr/share/nginx/html;
8+
index index.html index.htm;
9+
}
10+
11+
error_page 500 502 503 504 /50x.html;
12+
location = /50x.html {
13+
root /usr/share/nginx/html;
14+
}
15+
}

0 commit comments

Comments
 (0)