Fix Nginx startup in deployment
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 21s
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 21s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user