diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index e0feab3..e86a792 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -17,6 +17,10 @@ jobs: run: | docker build --pull -t akkolli-website:latest . + - name: Validate web server configuration + run: | + docker run --rm akkolli-website:latest nginx -t + - name: Stop existing container run: | docker stop website-container || true diff --git a/nginx.conf b/nginx.conf index d7c3ee6..d5a02d0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -22,7 +22,7 @@ server { text/plain text/xml; - location ~* \.[0-9a-f]{32,}\.(?:css|js)$ { + location ~* "\.[0-9a-f]{32,}\.(?:css|js)$" { try_files $uri =404; add_header Cache-Control "public, max-age=31536000, immutable" always; }