Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit a07d6d8

Browse files
committed
Set cert in nginx
1 parent 621bbf1 commit a07d6d8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

nginx.conf

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@ server {
33

44
server_name localhost;
55

6-
root /usr/share/nginx/html;
6+
root /var/www/html;
77

88
index index.html;
99

1010
# Serve the front-end application for all unmatched routes
1111
location / {
12-
try_files $uri /index.html;
13-
}
14-
15-
# Serve static files for assets
16-
location /assets/ {
17-
root /usr/share/nginx/html;
18-
expires max;
19-
add_header Cache-Control public;
12+
try_files $uri /index.html =404;
2013
}
2114

2215
# Serve certificate file directly

0 commit comments

Comments
 (0)