Skip to content

Commit 00e0b2e

Browse files
committed
update upsync_dump_path default
1 parent e252c6d commit 00e0b2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ upsync_dump_path
132132
-----------
133133
`syntax: upsync_dump_path $path`
134134

135-
default: /usr/local/nginx/conf/upstreams/upstream_$host.conf
135+
default: /tmp/servers_$host.conf
136136

137137
context: upstream
138138

src/ngx_http_upsync_module.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,11 +1572,11 @@ ngx_http_upsync_init_srv_conf(ngx_conf_t *cf, void *conf, ngx_uint_t num)
15721572

15731573
if (upscf->upsync_dump_path.len == NGX_CONF_UNSET_SIZE) {
15741574
buf = ngx_pcalloc(cf->pool,
1575-
ngx_strlen("/tmp/upstream_.conf") + uscf->host.len + 1);
1576-
ngx_sprintf(buf, "/tmp/upstream_%V.conf", &uscf->host);
1575+
ngx_strlen("/tmp/servers_.conf") + uscf->host.len + 1);
1576+
ngx_sprintf(buf, "/tmp/servers_%V.conf", &uscf->host);
15771577

15781578
upscf->upsync_dump_path.data = buf;
1579-
upscf->upsync_dump_path.len = ngx_strlen("/tmp/upstream_.conf")
1579+
upscf->upsync_dump_path.len = ngx_strlen("/tmp/servers_.conf")
15801580
+ uscf->host.len;
15811581
}
15821582

0 commit comments

Comments
 (0)