Skip to content

Commit

Permalink
Add syslog_tls_certificate_authority field
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Vasilenko committed Mar 15, 2024
1 parent c9f63a2 commit f737bf2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/helptext/system/advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,8 @@ The system only sends logs matching this level or higher.',
tooltip: T('The preconfigured system <i>Certificate</i> to use for authenticating\
the TLS protocol connection to the remote system log server.'),
},

syslog_tls_certificate_authority: {
placeholder: T('Syslog TLS Certificate Authority'),
},
};
21 changes: 21 additions & 0 deletions src/app/pages/system/advanced/advanced.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,21 @@ export class AdvancedComponent implements OnDestroy {
},
],
},
{
type: 'select',
name: 'syslog_tls_certificate_authority',
placeholder: helptext_system_advanced.syslog_tls_certificate_authority.placeholder,
options: [],
relation: [
{
action: 'SHOW',
when: [{
name: 'syslog_transport',
value: 'TLS',
}],
},
],
},
],
},
{ name: 'divider', divider: true },
Expand Down Expand Up @@ -413,6 +428,12 @@ export class AdvancedComponent implements OnDestroy {
syslog_tls_certificate_field.options.push({ label: cert.name, value: cert.id });
}
});
const syslog_tls_certificate_authority_field = this.fieldSets.config('syslog_tls_certificate_authority');
this.ws.call('certificateauthority.query').subscribe((certs) => {
for (const cert of certs) {
syslog_tls_certificate_authority_field.options.push({ label: cert.name, value: cert.id });
}
});
}
afterInit(entityEdit: any) {
this.ws.call('failover.licensed').subscribe((is_ha) => {
Expand Down

0 comments on commit f737bf2

Please sign in to comment.