mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
opt some
This commit is contained in:
parent
1ce9dae8b8
commit
2fb38a05f9
@ -250,22 +250,23 @@ const (
|
|||||||
|
|
||||||
CLIENT_PROTOCOL = "client.protocol"
|
CLIENT_PROTOCOL = "client.protocol"
|
||||||
CLIENT_HOSTNAME = "client.hostname"
|
CLIENT_HOSTNAME = "client.hostname"
|
||||||
|
CLIENT_TIMEOUT = "client.timeout"
|
||||||
|
|
||||||
CLIENT_NAME = "client.name"
|
CLIENT_NAME = "client.name"
|
||||||
CLIENT_METHOD = "client.method"
|
CLIENT_METHOD = "client.method"
|
||||||
CLIENT_TIMEOUT = "client.timeout"
|
CLIENT_ORIGIN = "client.origin"
|
||||||
CLIENT_URL = "client.url"
|
CLIENT_URL = "client.url"
|
||||||
LOGHEADERS = "logheaders"
|
|
||||||
|
|
||||||
OPEN = "open"
|
OPEN = "open"
|
||||||
FULL = "full"
|
FULL = "full"
|
||||||
LINK = "link"
|
LINK = "link"
|
||||||
HTTP = "http"
|
HTTP = "http"
|
||||||
FORM = "form"
|
FORM = "form"
|
||||||
MERGE = "merge"
|
MERGE = "merge"
|
||||||
ADDRESS = "address"
|
ADDRESS = "address"
|
||||||
REQUEST = "request"
|
REQUEST = "request"
|
||||||
RESPONSE = "response"
|
RESPONSE = "response"
|
||||||
|
LOGHEADERS = "logheaders"
|
||||||
)
|
)
|
||||||
const SPIDE = "spide"
|
const SPIDE = "spide"
|
||||||
|
|
||||||
|
@ -67,9 +67,9 @@ func _publish_contexts(m *ice.Message, arg ...string) {
|
|||||||
case ice.MISC:
|
case ice.MISC:
|
||||||
_publish_file(m, ice.ICE_BIN)
|
_publish_file(m, ice.ICE_BIN)
|
||||||
case ice.CORE:
|
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:
|
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")))
|
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) {
|
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, `
|
ice.CORE, `
|
||||||
# 下载命令 wget Busybox
|
# 下载命令 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
|
# 下载命令 wget Alpine
|
||||||
temp=$(mktemp); wget -O $temp -q {{.Option "domain"}}; source $temp binary
|
temp=$(mktemp); wget -O $temp -q {{.Option "domain"}}; source $temp binary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user