Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/compas-open-scd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM public.ecr.aws/nginx/nginx:1.29.1

COPY nginx.conf /etc/nginx/nginx.conf
COPY build/. /usr/share/nginx/html

EXPOSE 8080

VOLUME /etc/nginx/
VOLUME /usr/share/nginx/html/public/cim
VOLUME /usr/share/nginx/html/public/conf
Expand Down
21 changes: 21 additions & 0 deletions packages/compas-open-scd/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
events {
worker_connections 1024;
}

http {
server {
listen 8080;
listen [::]:8080;
server_name localhost;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
}