Fixes for deployment and Nginx config
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
# Deploy: build image, push to registry, trigger Portainer stack redeploy.
|
# Deploy: build image, push to registry, trigger Portainer stack redeploy.
|
||||||
# Runs on push/tag/manual to main only, after ci workflow succeeds.
|
# Runs on push/tag/manual to main only, after ci workflow succeeds.
|
||||||
when:
|
when:
|
||||||
branch: main
|
- branch: main
|
||||||
event: [push, tag, manual]
|
event: [push, tag, manual]
|
||||||
|
- event: deployment
|
||||||
|
evaluate: 'CI_PIPELINE_DEPLOY_TARGET == "production"'
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- ci
|
- ci
|
||||||
|
|||||||
@@ -38,11 +38,7 @@ location ~* \.(pdf|doc|docx)$ {
|
|||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
# robots.txt: short cache (1 day)
|
# robots.txt and sitemap.xml: handled in default.conf with alias (variant-specific)
|
||||||
location = /robots.txt {
|
|
||||||
add_header Cache-Control "public, max-age=86400";
|
|
||||||
access_log off;
|
|
||||||
}
|
|
||||||
|
|
||||||
# favicon: long cache (30 days)
|
# favicon: long cache (30 days)
|
||||||
location = /favicon.svg {
|
location = /favicon.svg {
|
||||||
|
|||||||
Reference in New Issue
Block a user