3x-ui/frontend/src/test/__snapshots__/security.test.ts.snap
MHSanaei 1a64d7e9de
feat(tls): add ocspStapling to certificate config
Expose the OCSP Stapling refresh interval (seconds) on the TLS
certificate object in the inbound security form, defaulting to 3600s
to match xray-core. Covers both file-backed and inline cert shapes.
2026-06-03 17:49:36 +02:00

74 lines
1.7 KiB
Text

// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`SecuritySettingsSchema fixtures > parses none byte-stably 1`] = `
{
"security": "none",
}
`;
exports[`SecuritySettingsSchema fixtures > parses reality-basic byte-stably 1`] = `
{
"realitySettings": {
"maxClientVer": "",
"maxTimediff": 0,
"minClientVer": "",
"mldsa65Seed": "",
"privateKey": "wM-2_oQRWXyLcXhV5q1ifTBcS3K8mYR3wQI3PqGFK1k",
"serverNames": [
"yahoo.com",
"www.yahoo.com",
],
"settings": {
"fingerprint": "chrome",
"mldsa65Verify": "",
"publicKey": "Tx5yj1bRcOPHkdvT2pIAQ2zh0gQ8m4OPdnzqXJxxV3o",
"serverName": "",
"spiderX": "/",
},
"shortIds": [
"a3f1",
"b8c2",
"d9e4",
],
"show": false,
"target": "yahoo.com:443",
"xver": 0,
},
"security": "reality",
}
`;
exports[`SecuritySettingsSchema fixtures > parses tls-cert-file byte-stably 1`] = `
{
"security": "tls",
"tlsSettings": {
"alpn": [
"h2",
"http/1.1",
],
"certificates": [
{
"buildChain": false,
"certificateFile": "/etc/ssl/certs/cdn.example.test.crt",
"keyFile": "/etc/ssl/private/cdn.example.test.key",
"ocspStapling": 3600,
"oneTimeLoading": false,
"usage": "encipherment",
},
],
"cipherSuites": "",
"disableSystemRoot": false,
"echServerKeys": "",
"enableSessionResumption": false,
"maxVersion": "1.3",
"minVersion": "1.2",
"rejectUnknownSni": false,
"serverName": "cdn.example.test",
"settings": {
"echConfigList": "",
"fingerprint": "chrome",
"pinnedPeerCertSha256": [],
},
},
}
`;