Skip to content

Commit

Permalink
Set cert in nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehinds committed Dec 14, 2024
1 parent bb0fcb2 commit 6ef38b3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

# Serve certificate file directly
location /certificates/ {
root /usr/share/nginx/html;
default_type application/octet-stream;
autoindex on;
}
}

0 comments on commit 6ef38b3

Please sign in to comment.