Added Dockerfile

This commit is contained in:
Penguin-71630
2025-12-13 05:10:30 +08:00
parent 4de4cc4a18
commit f3108b3c80
8 changed files with 87 additions and 144 deletions

24
webpage/nginx.conf Normal file
View File

@@ -0,0 +1,24 @@
server {
listen 48763;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://backend:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss application/json application/javascript;
}