feat: add Dockerfiles, nginx config, serve frontend from Rust backend

This commit is contained in:
ZeptaLab Bot
2026-06-01 11:01:42 +00:00
parent ca775da1f1
commit a243e286bf
4 changed files with 45 additions and 19 deletions
+21
View File
@@ -0,0 +1,21 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://hello-web:80/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}