default to existing behavior for allowing unsealed

This commit is contained in:
balzack 2023-12-23 10:41:04 -08:00
parent 76246ac6eb
commit 9f1b502d5b
3 changed files with 3 additions and 3 deletions

View File

@ -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 \
&& 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 --cwd /app/databag/net/web install

View File

@ -37,7 +37,7 @@ func GetAccountStatus(w http.ResponseWriter, r *http.Request) {
status.Searchable = account.Searchable
status.Sealable = true
status.EnableIce = getBoolConfigValue(CNFEnableIce, false)
status.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, false)
status.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, true)
status.PushEnabled = session.PushEnabled
status.Seal = seal
WriteResponse(w, status)

View File

@ -17,7 +17,7 @@ func GetNodeConfig(w http.ResponseWriter, r *http.Request) {
var config NodeConfig
config.Domain = getStrConfigValue(CNFDomain, "")
config.AccountStorage = getNumConfigValue(CNFStorage, 0)
config.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, false)
config.AllowUnsealed = getBoolConfigValue(CNFAllowUnsealed, true)
config.EnableImage = getBoolConfigValue(CNFEnableImage, true)
config.EnableAudio = getBoolConfigValue(CNFEnableAudio, true)
config.EnableVideo = getBoolConfigValue(CNFEnableVideo, true)