File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,24 @@ events {
6
6
}
7
7
8
8
http {
9
+ include mime.types ;
10
+
9
11
server {
10
- include mime.types ;
11
- listen *:8000 ; # Listen for incoming connections from any interface on port 80
12
- server_name "" ; # Don't worry if "Host" HTTP Header is empty or not set
13
- root /usr/share/nginx/html; # serve static files from here
12
+ listen *:8000 ; # Listen for incoming connections from any interface on port 8000
13
+ server_name "" ; # Allow empty or not set "Host" HTTP Header
14
+ root /usr/share/nginx/html; # Serve static files from here
15
+
16
+ # Redirect `/ui-components` to `/ui-components/`
17
+ location = /ui-components {
18
+ return 301 $scheme ://$host /ui-components/;
19
+ }
14
20
21
+ # Serve the React app under `/ui-components/`
15
22
location / {
16
- try_files $uri $uri / /index .html;
23
+ try_files $uri $uri / /index .html;
17
24
}
25
+
26
+ # Optional health check locations
18
27
# location /.well-known/health-check {
19
28
# access_log off;
20
29
# return 200 "healthy\n";
26
35
# add_header Content-Type text/plain;
27
36
# }
28
37
}
29
- }
38
+ }
Original file line number Diff line number Diff line change 59
59
"tw-colors" : " ^3.3.2" ,
60
60
"webpack" : " ^5.95.0"
61
61
},
62
- "homepage" : " /ui-components"
62
+ "homepage" : " /ui-components/ "
63
63
}
You can’t perform that action at this time.
0 commit comments