mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 12:03:23 +01:00
Add certificate model for http and dns
change is_ecc to boolean, its still stored as int in sqlite
This commit is contained in:
@@ -1,5 +1,32 @@
|
||||
import { useState } from "react";
|
||||
|
||||
import {
|
||||
CertificateAuthorityField,
|
||||
DomainNamesField,
|
||||
EccField,
|
||||
NameField,
|
||||
} from "./Common";
|
||||
|
||||
function HTTPForm() {
|
||||
return <p>Http form</p>;
|
||||
const [maxDomains, setMaxDomains] = useState(0);
|
||||
const [isWildcardSupported, setIsWildcardSupported] = useState(false);
|
||||
|
||||
const handleCAChange = (maxD: number, wildcards: boolean) => {
|
||||
setMaxDomains(maxD);
|
||||
setIsWildcardSupported(wildcards);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<NameField />
|
||||
<CertificateAuthorityField onChange={handleCAChange} />
|
||||
<DomainNamesField
|
||||
maxDomains={maxDomains}
|
||||
isWildcardSupported={isWildcardSupported}
|
||||
/>
|
||||
<EccField />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default HTTPForm;
|
||||
|
||||
Reference in New Issue
Block a user