mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-14 15:20:59 +00:00
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.
This commit is contained in:
@@ -34,6 +34,7 @@ export type TlsCertUsage = z.infer<typeof TlsCertUsageSchema>;
|
||||
export const TlsCertFileSchema = z.object({
|
||||
certificateFile: z.string().min(1),
|
||||
keyFile: z.string().min(1),
|
||||
ocspStapling: z.number().default(3600),
|
||||
oneTimeLoading: z.boolean().default(false),
|
||||
usage: TlsCertUsageSchema.default('encipherment'),
|
||||
buildChain: z.boolean().default(false),
|
||||
@@ -41,6 +42,7 @@ export const TlsCertFileSchema = z.object({
|
||||
export const TlsCertInlineSchema = z.object({
|
||||
certificate: z.array(z.string()),
|
||||
key: z.array(z.string()),
|
||||
ocspStapling: z.number().default(3600),
|
||||
oneTimeLoading: z.boolean().default(false),
|
||||
usage: TlsCertUsageSchema.default('encipherment'),
|
||||
buildChain: z.boolean().default(false),
|
||||
|
||||
Reference in New Issue
Block a user