feat: add option to allow worker HTTP image requests

This commit is contained in:
creamlike1024
2025-05-09 02:00:42 +08:00
parent 4d0b438f81
commit 285c4a7e4c
4 changed files with 28 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ package setting
var ServerAddress = "http://localhost:3000"
var WorkerUrl = ""
var WorkerValidKey = ""
var WorkerAllowHttpImageRequestEnabled = false
func EnableWorker() bool {
return WorkerUrl != ""