mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-30 09:57:51 +01:00
Certificates Renewal + SSE
- Certificate renewal is just a re-request as it's forced already - Rejig the routes for readability - Added Server Side Events so that the UI would invalidate the cache when changes happen on the backend, such as certs being provided or failing - Added a SSE Token, which has the same shelf life as normal token but can't be used interchangeably. The reason for this is, the SSE endpoint needs a token for auth as a Query param, so it would be stored in log files. If someone where to get a hold of that, it's pretty useless as it can't be used to change anything, only to listen for events until it expires - Added test endpoint for SSE testing only availabe in debug mode
This commit is contained in:
29 files changed
+665
-197
No files matched your search
@@ -25,6 +25,7 @@ export interface TableProps {
|
||||
sortBy: TableSortBy[];
|
||||
filters: TableFilter[];
|
||||
onTableEvent: any;
|
||||
onRenewal: (id: number) => void;
|
||||
}
|
||||
function Table({
|
||||
data,
|
||||
@@ -32,6 +33,7 @@ function Table({
|
||||
onTableEvent,
|
||||
sortBy,
|
||||
filters,
|
||||
onRenewal,
|
||||
}: TableProps) {
|
||||
const [editId, setEditId] = useState(0);
|
||||
const [columns, tableData] = useMemo(() => {
|
||||
@@ -85,7 +87,7 @@ function Table({
|
||||
title: intl.formatMessage({
|
||||
id: "action.renew",
|
||||
}),
|
||||
onClick: (e: any, { id }: any) => alert(id),
|
||||
onClick: (e: any, { id }: any) => onRenewal(id),
|
||||
icon: <FiRefreshCw />,
|
||||
disabled: (data: any) =>
|
||||
data.type !== "dns" && data.type !== "http",
|
||||
@@ -110,7 +112,7 @@ function Table({
|
||||
},
|
||||
];
|
||||
return [columns, data];
|
||||
}, [data]);
|
||||
}, [data, onRenewal]);
|
||||
|
||||
const tableInstance = useTable(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user