mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
fix: bind awsgw and predastore on 0.0.0.0 in spinifex.toml template
PR #144 (nats TLS) made every service listen on --bind's specific IP. For awsgw and predastore this broke localhost-reachability that the UI proxy (spinifexui/spinifexui.go:193-194) and AWS CLI spinifex profile rely on — latent since #144, surfaced by siv-7's auto-detect default on dev installs (502 from the UI). Hardcode awsgw and predastore host fields to 0.0.0.0 so both listen wildcard; loopback clients (UI proxy, spinifex AWS CLI profile, same-host daemon → predastore) keep working, LAN clients still reach them via the LAN-IP SAN on the cert. daemon.host and nats.host stay as {{.BindIP}} because peer-advertised values must not resolve to 0.0.0.0/loopback. predastore.host normalization at config.go:207 rewrites 0.0.0.0 → 127.0.0.1 for local-node consumers, so existing callers see a usable connect address.
This commit is contained in:
@@ -61,7 +61,7 @@ dev_networking = true
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
[nodes.{{.Node}}.awsgw]
|
[nodes.{{.Node}}.awsgw]
|
||||||
host = "{{.BindIP}}:9999"
|
host = "0.0.0.0:9999"
|
||||||
tlskey = "config/server.key"
|
tlskey = "config/server.key"
|
||||||
tlscert = "config/server.pem"
|
tlscert = "config/server.pem"
|
||||||
debug = true
|
debug = true
|
||||||
@@ -90,7 +90,7 @@ wan_bridge = "{{.WanBridge}}"
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
||||||
[nodes.{{.Node}}.predastore]
|
[nodes.{{.Node}}.predastore]
|
||||||
host = "{{.BindIP}}:8443"
|
host = "0.0.0.0:8443"
|
||||||
region = "{{.Region}}"
|
region = "{{.Region}}"
|
||||||
bucket = "predastore"
|
bucket = "predastore"
|
||||||
accesskey = "{{.AccessKey}}"
|
accesskey = "{{.AccessKey}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user