mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
Add allowed IPs to data schema sources
This commit is contained in:
@@ -175,6 +175,7 @@ CREATE TABLE IF NOT EXISTS public.api_keys (
|
|||||||
allowed_providers json,
|
allowed_providers json,
|
||||||
allowed_api_formats json,
|
allowed_api_formats json,
|
||||||
allowed_models json,
|
allowed_models json,
|
||||||
|
allowed_ips jsonb,
|
||||||
rate_limit integer DEFAULT 100,
|
rate_limit integer DEFAULT 100,
|
||||||
concurrent_limit integer,
|
concurrent_limit integer,
|
||||||
force_capabilities json,
|
force_capabilities json,
|
||||||
|
|||||||
@@ -322,6 +322,11 @@ name = "allowed_api_formats"
|
|||||||
type = "json"
|
type = "json"
|
||||||
nullable = true
|
nullable = true
|
||||||
|
|
||||||
|
[[table.api_keys.columns]]
|
||||||
|
name = "allowed_ips"
|
||||||
|
type = "json"
|
||||||
|
nullable = true
|
||||||
|
|
||||||
[[table.api_keys.columns]]
|
[[table.api_keys.columns]]
|
||||||
name = "rate_limit"
|
name = "rate_limit"
|
||||||
type = "int32"
|
type = "int32"
|
||||||
|
|||||||
Reference in New Issue
Block a user