mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-01 15:36:17 +00:00
feat: add option to allow worker HTTP image requests
This commit is contained in:
@@ -3,6 +3,7 @@ package setting
|
||||
var ServerAddress = "http://localhost:3000"
|
||||
var WorkerUrl = ""
|
||||
var WorkerValidKey = ""
|
||||
var WorkerAllowHttpImageRequestEnabled = false
|
||||
|
||||
func EnableWorker() bool {
|
||||
return WorkerUrl != ""
|
||||
|
||||
Reference in New Issue
Block a user