From 6ef38b30cf2daa035f9fa536b4aeb3d07c3cc93e Mon Sep 17 00:00:00 2001 From: Luke Hinds Date: Sat, 14 Dec 2024 21:20:17 +0000 Subject: [PATCH] Set cert in nginx --- nginx.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index ecc5a3c..5cb9648 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,13 +7,22 @@ server { index index.html; + # Serve the front-end application for all unmatched routes location / { try_files $uri /index.html; } + # Serve static files for assets location /assets/ { root /usr/share/nginx/html; expires max; add_header Cache-Control public; } -} \ No newline at end of file + + # Serve certificate file directly + location /certificates/ { + root /usr/share/nginx/html; + default_type application/octet-stream; + autoindex on; + } +}