mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Merge pull request #1776 from jkellerer/enable-fullchain-name-customization
security/acme-client: Added "fullchain" name-template to model & dialog
This commit is contained in:
+9
@@ -133,6 +133,15 @@
|
||||
Leave blank to use default "{{name}}/ca.pem".</help>
|
||||
<advanced>true</advanced>
|
||||
</field>
|
||||
<field>
|
||||
<id>action.sftp_filename_fullchain</id>
|
||||
<label>Naming "fullchain.pem"</label>
|
||||
<type>text</type>
|
||||
<help>Name template for the public certificate fullchain file (cert + ca).
|
||||
Placeholders "{{name}}" and "%s" are replaced by the name of the certificate being uploaded.
|
||||
Leave blank to use default "{{name}}/fullchain.pem".</help>
|
||||
<advanced>true</advanced>
|
||||
</field>
|
||||
<field>
|
||||
<label>Required Parameters</label>
|
||||
<type>header</type>
|
||||
|
||||
@@ -959,6 +959,12 @@
|
||||
<ValidationMessage>Should be a string between 1 and 255 characters.
|
||||
Characters are limited to [a-z], [0-9] and [{}@./-_%] and the string must neither begin nor end with '/'.</ValidationMessage>
|
||||
</sftp_filename_ca>
|
||||
<sftp_filename_fullchain type="TextField">
|
||||
<Required>N</Required>
|
||||
<mask>/^(?![\/\\])[\w\d_\-@.\/{}%]{1,255}(?<![\/\\])$/ui</mask>
|
||||
<ValidationMessage>Should be a string between 1 and 255 characters.
|
||||
Characters are limited to [a-z], [0-9] and [{}@./-_%] and the string must neither begin nor end with '/'.</ValidationMessage>
|
||||
</sftp_filename_fullchain>
|
||||
<configd type="ConfigdActionsField">
|
||||
<filters>
|
||||
<description>/^(?!.*(Let\'s\ Encrypt|acme|[fF]irmware))([\S\s]{1,255})/</description>
|
||||
|
||||
@@ -120,7 +120,6 @@ const UPLOAD_NAME_TEMPLATES = [
|
||||
"key" => ["default" => "{{name}}/key.pem", "option" => "key-name"],
|
||||
"ca" => ["default" => "{{name}}/ca.pem", "option" => "ca-name"],
|
||||
"fullchain" => ["default" => "{{name}}/fullchain.pem", "option" => "fullchain-name"],
|
||||
|
||||
];
|
||||
|
||||
// Exit codes
|
||||
|
||||
Reference in New Issue
Block a user