Add production Jenkins release pipelines
This commit is contained in:
12
deploy/nginx/snippets/genarrative-maintenance.conf
Normal file
12
deploy/nginx/snippets/genarrative-maintenance.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
# 维护模式由发布脚本或人工运维通过固定文件控制。
|
||||
# 文件存在时,普通页面展示维护页,管理 API 返回 503。
|
||||
set $genarrative_maintenance 0;
|
||||
if (-f /var/lib/genarrative/maintenance/enabled) {
|
||||
set $genarrative_maintenance 1;
|
||||
}
|
||||
|
||||
location = /maintenance.html {
|
||||
root /srv/genarrative/web;
|
||||
add_header Cache-Control "no-store";
|
||||
internal;
|
||||
}
|
||||
Reference in New Issue
Block a user