634b5a7bd0
- model: SimNet protocol fields + NormalizeSimnet; type+port protocol uniqueness - server config: OmnXT runtime config delivery via compatible() simnet case - credentials: derive per-user psk/key_id from subscription (pkg/simnet), no new table - subscription: adapter buildOmnxtSimnetConfigs + base64 buildOmnxtProtocolLinks + OmnXT SimNet application (migration 02161) - UA gating: hide experimental protocols from non first-party clients (download + JSON node-list) - admin: normalize simnet on create/update and on GET responses - tests: 21 simnet unit tests; full suite green
11 lines
804 B
SQL
11 lines
804 B
SQL
-- OmnXT SimNet subscription application.
|
|
-- Delivers simnet nodes as base64 "simnet://" protocol links built by the
|
|
-- adapter template function buildOmnxtProtocolLinks (per-user psk/key_id derived
|
|
-- from the subscription; server PSK carried for AF derivation). Matched by
|
|
-- User-Agent containing "omnxt". Mirrors the Pro reference final format
|
|
-- (migrations 02138 + 02140).
|
|
INSERT IGNORE INTO `subscribe_application`
|
|
(`id`, `name`, `icon`, `description`, `scheme`, `user_agent`, `is_default`, `subscribe_template`, `output_format`, `download_link`, `created_at`, `updated_at`)
|
|
VALUES
|
|
(1001, 'OmnXT SimNet', '', 'OmnXT SimNet base64 subscription', '', 'OmnXT', 0, '{{- range $link := buildOmnxtProtocolLinks .Proxies .UserInfo .Params }}{{ $link }}\n{{- end }}', 'base64', '{}', NOW(3), NOW(3));
|