Skip to content

Commit 6ef38b3

Browse files
author
Luke Hinds
committed
Set cert in nginx
1 parent bb0fcb2 commit 6ef38b3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nginx.conf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@ server {
77

88
index index.html;
99

10+
# Serve the front-end application for all unmatched routes
1011
location / {
1112
try_files $uri /index.html;
1213
}
1314

15+
# Serve static files for assets
1416
location /assets/ {
1517
root /usr/share/nginx/html;
1618
expires max;
1719
add_header Cache-Control public;
1820
}
19-
}
21+
22+
# Serve certificate file directly
23+
location /certificates/ {
24+
root /usr/share/nginx/html;
25+
default_type application/octet-stream;
26+
autoindex on;
27+
}
28+
}

0 commit comments

Comments
 (0)