Skip to content

Commit 1a09833

Browse files
committed
feat(tls): add necessary tls config
1 parent 2135cbd commit 1a09833

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ RUN bash ./build.sh output
99

1010
FROM nginx:alpine as runner
1111

12+
COPY default.conf /etc/nginx/conf.d/default.conf
13+
1214
COPY --from=builder /app/output /usr/share/nginx/html

default.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
server {
2+
listen 80 default_server;
3+
listen [::]:80 default_server ipv6only=on;
4+
5+
listen 443 ssl;
6+
7+
root /usr/share/nginx/html;
8+
index index.html;
9+
10+
server_name localhost;
11+
ssl_certificate /etc/nginx/ssl/tls.crt;
12+
ssl_certificate_key /etc/nginx/ssl/tls.key;
13+
14+
location / {
15+
try_files $uri $uri/ =404;
16+
}
17+
}

0 commit comments

Comments
 (0)