feat: add deployment artifacts and health endpoints
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
COPY apps/ui/index.html /usr/share/nginx/html/index.html
|
||||
COPY apps/ui/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 3000
|
||||
@@ -1,3 +0,0 @@
|
||||
# UI
|
||||
|
||||
The UI app is planned as a separate TypeScript project and is intentionally kept outside the Cargo workspace.
|
||||
@@ -0,0 +1,59 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>RMCP UI</title>
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
font-family: "Segoe UI", sans-serif;
|
||||
background: #f7f7f2;
|
||||
color: #1e1d1a;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(180, 196, 161, 0.45), transparent 32%),
|
||||
radial-gradient(circle at bottom right, rgba(226, 196, 154, 0.45), transparent 38%),
|
||||
#f7f7f2;
|
||||
}
|
||||
|
||||
main {
|
||||
width: min(720px, calc(100vw - 48px));
|
||||
padding: 40px;
|
||||
border-radius: 24px;
|
||||
background: rgba(255, 255, 255, 0.84);
|
||||
box-shadow: 0 24px 80px rgba(35, 34, 29, 0.14);
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 0 12px;
|
||||
font-size: clamp(2rem, 5vw, 3.4rem);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
code {
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: 0.35rem;
|
||||
background: rgba(31, 30, 27, 0.08);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<h1>RMCP UI</h1>
|
||||
<p>Deployment placeholder for the administrative console. The production UI container is reachable through <code>/</code>.</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
server {
|
||||
listen 3000;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user