1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-25 17:18:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-02-21 14:57:12 +08:00
parent 1ce9dae8b8
commit 2fb38a05f9
2 changed files with 18 additions and 17 deletions

View File

@ -250,22 +250,23 @@ const (
CLIENT_PROTOCOL = "client.protocol"
CLIENT_HOSTNAME = "client.hostname"
CLIENT_TIMEOUT = "client.timeout"
CLIENT_NAME = "client.name"
CLIENT_METHOD = "client.method"
CLIENT_TIMEOUT = "client.timeout"
CLIENT_URL = "client.url"
LOGHEADERS = "logheaders"
CLIENT_NAME = "client.name"
CLIENT_METHOD = "client.method"
CLIENT_ORIGIN = "client.origin"
CLIENT_URL = "client.url"
OPEN = "open"
FULL = "full"
LINK = "link"
HTTP = "http"
FORM = "form"
MERGE = "merge"
ADDRESS = "address"
REQUEST = "request"
RESPONSE = "response"
OPEN = "open"
FULL = "full"
LINK = "link"
HTTP = "http"
FORM = "form"
MERGE = "merge"
ADDRESS = "address"
REQUEST = "request"
RESPONSE = "response"
LOGHEADERS = "logheaders"
)
const SPIDE = "spide"

View File

@ -67,9 +67,9 @@ func _publish_contexts(m *ice.Message, arg ...string) {
case ice.MISC:
_publish_file(m, ice.ICE_BIN)
case ice.CORE:
m.Option(web.DOMAIN, m.Cmd(web.SPIDE, ice.SHY).Append("client.origin"))
m.Option(web.DOMAIN, m.Cmd(web.SPIDE, ice.COM).Append(web.CLIENT_ORIGIN))
case ice.BASE:
m.Option(web.DOMAIN, m.Cmd(web.SPIDE, ice.SHY).Append("client.origin"))
m.Option(web.DOMAIN, m.Cmd(web.SPIDE, ice.SHY).Append(web.CLIENT_ORIGIN))
m.Option(nfs.REMOTE, kit.Select(ice.Info.Make.Remote, cli.SystemExec(m, "git", "config", "remote.origin.url")))
}
if buf, err := kit.Render(m.Config(kit.Keys(ice.CONTEXTS, k)), m); m.Assert(err) {
@ -128,7 +128,7 @@ export ctx_dev={{.Option "domain"}}{{.Option "ctx_env"}}; temp=$(mktemp); curl -
`,
ice.CORE, `
# 下载命令 wget Busybox
temp=$(mktemp); wget -O $temp -q http://shylinux.com; source $temp binary
temp=$(mktemp); wget -O $temp -q http://contexts.com.cn; source $temp binary
# 下载命令 wget Alpine
temp=$(mktemp); wget -O $temp -q {{.Option "domain"}}; source $temp binary