- add: frontend webpage for login/register

This commit is contained in:
2024-12-17 17:03:55 -05:00
parent c67cdd5b2a
commit 9c61b1b3f2
20 changed files with 29819 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
# Root directory for the built React app
root /usr/share/nginx/html;
# Serve index.html for all routes
location / {
try_files $uri /index.html;
}
# Serve static files directly
location ~* \.(?:ico|css|js|gif|jpg|jpeg|png|svg|woff2?|eot|ttf|otf)$ {
expires max;
add_header Cache-Control "public";
}
# Optional: Log errors
error_log /var/log/nginx/error.log warn;
access_log /var/log/nginx/access.log;
}