mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
default to existing behavior for allowing unsealed
This commit is contained in:
parent
76246ac6eb
commit
9f1b502d5b
@ -36,7 +36,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; elif [ "$
|
|||||||
&& wget -P /app https://go.dev/dl/go1.18.10.linux-${ARCHITECTURE}.tar.gz \
|
&& wget -P /app https://go.dev/dl/go1.18.10.linux-${ARCHITECTURE}.tar.gz \
|
||||||
&& tar -C /usr/local -xzf /app/go1.18.10.linux-${ARCHITECTURE}.tar.gz
|
&& tar -C /usr/local -xzf /app/go1.18.10.linux-${ARCHITECTURE}.tar.gz
|
||||||
|
|
||||||
RUN git clone https://github.com/balzack/databag.git /app/databag
|
RUN git clone https://github.com/balzack/databag.git -b openwrt /app/databag
|
||||||
|
|
||||||
RUN yarn config set network-timeout 300000
|
RUN yarn config set network-timeout 300000
|
||||||
RUN yarn --cwd /app/databag/net/web install
|
RUN yarn --cwd /app/databag/net/web install
|
||||||
|
@ -37,7 +37,7 @@ func GetAccountStatus(w http.ResponseWriter, r *http.Request) {
|
|||||||
status.Searchable = account.Searchable
|
status.Searchable = account.Searchable
|
||||||
status.Sealable = true
|
status.Sealable = true
|
||||||
status.EnableIce = getBoolConfigValue(CNFEnableIce, false)
|
status.EnableIce = getBoolConfigValue(CNFEnableIce, false)
|
||||||
status.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, false)
|
status.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, true)
|
||||||
status.PushEnabled = session.PushEnabled
|
status.PushEnabled = session.PushEnabled
|
||||||
status.Seal = seal
|
status.Seal = seal
|
||||||
WriteResponse(w, status)
|
WriteResponse(w, status)
|
||||||
|
@ -17,7 +17,7 @@ func GetNodeConfig(w http.ResponseWriter, r *http.Request) {
|
|||||||
var config NodeConfig
|
var config NodeConfig
|
||||||
config.Domain = getStrConfigValue(CNFDomain, "")
|
config.Domain = getStrConfigValue(CNFDomain, "")
|
||||||
config.AccountStorage = getNumConfigValue(CNFStorage, 0)
|
config.AccountStorage = getNumConfigValue(CNFStorage, 0)
|
||||||
config.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, false)
|
config.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, true)
|
||||||
config.EnableImage = getBoolConfigValue(CNFEnableImage, true)
|
config.EnableImage = getBoolConfigValue(CNFEnableImage, true)
|
||||||
config.EnableAudio = getBoolConfigValue(CNFEnableAudio, true)
|
config.EnableAudio = getBoolConfigValue(CNFEnableAudio, true)
|
||||||
config.EnableVideo = getBoolConfigValue(CNFEnableVideo, true)
|
config.EnableVideo = getBoolConfigValue(CNFEnableVideo, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user