Update healthcheck, nginx caching, and frontend version

- Replace healthcheck test with curl in deploy.sh
- Add backend as a dependency for the frontend service
- Bump frontend version to 1.1.1
- Remove frontend/public/test.html
- Update nginx caching: separate hashed CSS/JS and non-hashed assets
This commit is contained in:
2026-01-16 16:36:27 +01:00
parent 2f0485d7c5
commit e7036da5a6
5 changed files with 21 additions and 18 deletions

View File

@@ -322,15 +322,14 @@ services:
- '30443:443'
restart: unless-stopped
healthcheck:
test:
- CMD
- wget
- http://localhost:80/health
test: ['CMD', 'curl', 'http://localhost:80/health']
interval: 10s
timeout: 5s
retries: 5
networks:
- edh-stats-network
depends_on:
- backend
volumes:
sqlite_data:

View File

@@ -1 +1 @@
1.1.0
1.1.1

View File

@@ -67,8 +67,22 @@ http {
proxy_read_timeout 86400;
}
# Rate limited static files
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|txt)$ {
# Hashed CSS files (cache-busted)
location ~* ^/css/.*\.css$ {
limit_req zone=static burst=50 nodelay;
expires 1y;
add_header Cache-Control "public, immutable";
}
# Hashed JS files (cache-busted)
location ~* ^/js/.*\.(js|mjs)$ {
limit_req zone=static burst=50 nodelay;
expires 1y;
add_header Cache-Control "public, immutable";
}
# Regular static files (non-hashed)
location ~* \.(png|jpg|jpeg|gif|ico|svg|txt)$ {
limit_req zone=static burst=50 nodelay;
expires 1y;
add_header Cache-Control "public, immutable";

View File

@@ -1,10 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>Hello EDH Stats!</h1>
<p>Frontend is working!</p>
</body>
</html>

View File

@@ -1 +1 @@
1.1.0
1.1.1