]>
Commit | Line | Data |
---|---|---|
c083fb77 WB |
1 | Ext.define('PMG.CertificateConfiguration', { |
2 | extend: 'Ext.tab.Panel', | |
3 | alias: 'widget.pmgCertificateConfiguration', | |
4 | ||
5 | title: gettext('Certificates'), | |
6 | ||
a78fbb70 TL |
7 | ...PMG.Utils.onlineHelpTool('sysadmin_certificate_management'), |
8 | ||
c083fb77 WB |
9 | border: false, |
10 | defaults: { border: false }, | |
11 | ||
12 | items: [ | |
13 | { | |
14 | itemId: 'certificates', | |
15 | xtype: 'pmgCertificatesView', | |
16 | }, | |
17 | { | |
18 | itemId: 'acme', | |
19 | xtype: 'pmgACMEConfigView', | |
20 | }, | |
21 | ], | |
22 | }); | |
23 | ||
24 | Ext.define('PMG.CertificateView', { | |
a7f1529c | 25 | extend: 'Ext.panel.Panel', |
c083fb77 WB |
26 | alias: 'widget.pmgCertificatesView', |
27 | ||
28 | title: gettext('Certificates'), | |
29 | ||
30 | items: [ | |
31 | { | |
32 | xtype: 'pmxCertificates', | |
33 | border: 0, | |
34 | infoUrl: '/nodes/' + Proxmox.NodeName + '/certificates/info', | |
35 | uploadButtons: [ | |
36 | { | |
37 | name: 'API', | |
38 | id: 'pmg-api.pem', | |
39 | url: `/nodes/${Proxmox.NodeName}/certificates/custom/api`, | |
40 | deletable: false, | |
41 | reloadUi: true, | |
42 | }, | |
43 | { | |
44 | name: 'SMTP', | |
45 | id: 'pmg-tls.pem', | |
46 | url: `/nodes/${Proxmox.NodeName}/certificates/custom/smtp`, | |
47 | deletable: true, | |
48 | }, | |
49 | ], | |
50 | }, | |
51 | { | |
52 | xtype: 'pmxACMEDomains', | |
53 | border: 0, | |
54 | url: `/nodes/${Proxmox.NodeName}/config`, | |
55 | nodename: Proxmox.NodeName, | |
56 | acmeUrl: '/config/acme', | |
57 | domainUsages: [ | |
58 | { | |
59 | usage: 'api', | |
60 | name: 'API', | |
61 | url: `/nodes/${Proxmox.NodeName}/certificates/acme/api`, | |
62 | reloadUi: true, | |
63 | }, | |
64 | { | |
65 | usage: 'smtp', | |
66 | name: 'SMTP', | |
67 | url: `/nodes/${Proxmox.NodeName}/certificates/acme/smtp`, | |
68 | }, | |
69 | ], | |
70 | }, | |
71 | ], | |
72 | }); | |
73 | ||
74 | Ext.define('PMG.ACMEConfigView', { | |
75 | extend: 'Ext.panel.Panel', | |
76 | alias: 'widget.pmgACMEConfigView', | |
77 | ||
a7f1529c | 78 | title: gettext('ACME Accounts/Challenges'), |
c083fb77 WB |
79 | |
80 | //onlineHelp: 'sysadmin_certificate_management', | |
81 | ||
82 | items: [ | |
83 | { | |
a7f1529c | 84 | xtype: 'pmxACMEAccounts', |
c083fb77 WB |
85 | region: 'north', |
86 | border: false, | |
c083fb77 WB |
87 | acmeUrl: '/config/acme', |
88 | }, | |
89 | { | |
a7f1529c | 90 | xtype: 'pmxACMEPluginView', |
c083fb77 WB |
91 | region: 'center', |
92 | border: false, | |
c083fb77 WB |
93 | acmeUrl: '/config/acme', |
94 | }, | |
95 | ], | |
96 | }); | |
97 | ||
98 |