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:
@@ -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:
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.1.0
|
||||
1.1.1
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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>
|
||||
@@ -1 +1 @@
|
||||
1.1.0
|
||||
1.1.1
|
||||
|
||||
Reference in New Issue
Block a user