mirror of
https://github.com/orris-inc/orris.git
synced 2026-05-06 21:44:01 +08:00
Implement end-to-end AnyTLS protocol support including domain value objects, repository persistence, use case handling, subscription formatting (Base64/Clash/Surge), and HTTP handler bindings. Add migration script for the anytls_configs table and wire protocol-specific config loading in parallel with existing protocols. Also add PlanType filter to plan repository list query.
20 lines
774 B
SQL
20 lines
774 B
SQL
-- +goose Up
|
|
CREATE TABLE node_anytls_configs (
|
|
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
|
node_id BIGINT UNSIGNED NOT NULL,
|
|
sni VARCHAR(255),
|
|
allow_insecure TINYINT(1) NOT NULL DEFAULT 1,
|
|
fingerprint VARCHAR(100),
|
|
idle_session_check_interval VARCHAR(20),
|
|
idle_session_timeout VARCHAR(20),
|
|
min_idle_session INT NOT NULL DEFAULT 0,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
deleted_at TIMESTAMP NULL,
|
|
UNIQUE INDEX idx_node_anytls_configs_node_id (node_id),
|
|
INDEX idx_node_anytls_configs_deleted_at (deleted_at)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
|
|
-- +goose Down
|
|
DROP TABLE IF EXISTS node_anytls_configs;
|