mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
🎨 Set the env SIYUAN_ACCESS_AUTH_CODE_BYPASS=true to skip checking access auth code when deploying Docker Fix https://github.com/siyuan-note/siyuan/issues/9709
This commit is contained in:
parent
e00d106e09
commit
08a374825f
1 changed files with 2 additions and 2 deletions
|
|
@ -89,12 +89,12 @@ func Boot() {
|
||||||
bypass, parseErr := strconv.ParseBool(byPassEnv)
|
bypass, parseErr := strconv.ParseBool(byPassEnv)
|
||||||
if nil == parseErr && bypass {
|
if nil == parseErr && bypass {
|
||||||
interruptBoot = false
|
interruptBoot = false
|
||||||
logging.LogInfof("bypass access auth code check since the env [SIYUAN_ACCESS_AUTH_CODE_BYPASS] is set to [true]")
|
fmt.Println("bypass access auth code check since the env [SIYUAN_ACCESS_AUTH_CODE_BYPASS] is set to [true]")
|
||||||
}
|
}
|
||||||
|
|
||||||
if interruptBoot {
|
if interruptBoot {
|
||||||
// The access authorization code command line parameter must be set when deploying via Docker https://github.com/siyuan-note/siyuan/issues/9328
|
// The access authorization code command line parameter must be set when deploying via Docker https://github.com/siyuan-note/siyuan/issues/9328
|
||||||
fmt.Printf("The access authorization code command line parameter (--accessAuthCode) must be set when deploying via Docker.")
|
fmt.Printf("the access authorization code command line parameter (--accessAuthCode) must be set when deploying via Docker")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue