Compare commits

..

1 Commits

Author SHA1 Message Date
jc21
fbea8dfa9e Merge pull request #4825 from NginxProxyManager/develop
v2.13.0
2025-11-04 14:23:00 +10:00
6 changed files with 12 additions and 27 deletions

View File

@@ -25,12 +25,6 @@ const configure = () => {
if (configData?.database) { if (configData?.database) {
logger.info(`Using configuration from file: ${filename}`); logger.info(`Using configuration from file: ${filename}`);
// Migrate those who have "mysql" engine to "mysql2"
if (configData.database.engine === "mysql") {
configData.database.engine = mysqlEngine;
}
instance = configData; instance = configData;
instance.keys = getKeys(); instance.keys = getKeys();
return; return;

View File

@@ -5,14 +5,5 @@ interface Props {
certificate?: Certificate; certificate?: Certificate;
} }
export function CertificateFormatter({ certificate }: Props) { export function CertificateFormatter({ certificate }: Props) {
let translation = "http-only"; return <T id={certificate ? "lets-encrypt" : "http-only"} />;
if (certificate) {
translation = certificate.provider;
if (translation === "letsencrypt") {
translation = "lets-encrypt";
} else if (translation === "other") {
translation = "certificates.custom";
}
}
return <T id={translation} />;
} }

View File

@@ -32,7 +32,6 @@
"certificate.none.subtitle.for-http": "This host will not use HTTPS", "certificate.none.subtitle.for-http": "This host will not use HTTPS",
"certificate.none.title": "None", "certificate.none.title": "None",
"certificate.not-in-use": "Not Used", "certificate.not-in-use": "Not Used",
"certificate.renew": "Renew Certificate",
"certificates": "Certificates", "certificates": "Certificates",
"certificates.custom": "Custom Certificate", "certificates.custom": "Custom Certificate",
"certificates.custom.warning": "Key files protected with a passphrase are not supported.", "certificates.custom.warning": "Key files protected with a passphrase are not supported.",

View File

@@ -98,9 +98,6 @@
"certificate.not-in-use": { "certificate.not-in-use": {
"defaultMessage": "Not Used" "defaultMessage": "Not Used"
}, },
"certificate.renew": {
"defaultMessage": "Renew Certificate"
},
"certificates": { "certificates": {
"defaultMessage": "Certificates" "defaultMessage": "Certificates"
}, },

View File

@@ -47,7 +47,7 @@ const RenewCertificateModal = EasyModal.create(({ id, visible, remove }: Props)
<Modal show={visible} onHide={isSubmitting ? undefined : remove}> <Modal show={visible} onHide={isSubmitting ? undefined : remove}>
<Modal.Header closeButton={!isSubmitting}> <Modal.Header closeButton={!isSubmitting}>
<Modal.Title> <Modal.Title>
<T id="certificate.renew" /> <T id="renew-certificate" />
</Modal.Title> </Modal.Title>
</Modal.Header> </Modal.Header>
<Modal.Body> <Modal.Body>

View File

@@ -24,6 +24,10 @@ export default function Table({ data, isFetching, onSelectItem }: Props) {
className: "w-1", className: "w-1",
}, },
}), }),
columnHelper.accessor((row: AuditLog) => row.user?.name, {
id: "user.name",
header: intl.formatMessage({ id: "column.name" }),
}),
columnHelper.accessor((row: AuditLog) => row, { columnHelper.accessor((row: AuditLog) => row, {
id: "objectType", id: "objectType",
header: intl.formatMessage({ id: "column.event" }), header: intl.formatMessage({ id: "column.event" }),