build: add Docker and nginx configuration for deployment
Some checks failed
Admin CI / build-and-push-web (push) Failing after 2m50s

Added Dockerfile.web for containerizing the web application and nginx.conf
for serving the application in production. Also included .gitea/ directory
for CI/CD configuration.
This commit is contained in:
lafay
2026-04-04 00:20:45 +08:00
parent 3e06cfde76
commit ff77b46f79
3 changed files with 115 additions and 0 deletions

19
nginx.conf Normal file
View File

@@ -0,0 +1,19 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
gzip_min_length 256;
}