Update index.tsx

This commit is contained in:
Stefan Pejcic 2025-02-03 07:33:03 +01:00 committed by GitHub
parent 3103beb0e4
commit 4ff59d54a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,12 +14,11 @@ interface InstallOption {
type InstallOptions = Record<string, InstallOption>;
const defaultOptions: InstallOptions = {
hostname: { value: "", description: "Set the FQDN hostname." },
domain: { value: "", description: "Set the domain to be used for accessing panels." },
version: { value: "", description: "Set a custom OpenPanel version to be installed." },
email: { value: "", description: "Email address to receive admin logins and future notifications." },
username: { value: "", description: "Set admin username (by default random generated)." },
password: { value: "", description: "Set admin password (by default random generated)." },
"docker-space": { value: "", description: "Specify the size in GB to allocate to Docker." },
"skip-requirements": { value: false, description: "Skip the requirements check." },
"skip-panel-check": { value: false, description: "Skip checking if existing panels are installed." },
"skip-apt-update": { value: false, description: "Skip the APT update." },
@ -40,7 +39,7 @@ const Install: React.FC = () => {
const [latestVersion, setLatestVersion] = useState<string>("");
useEffect(() => {
fetch("https://get.openpanel.co/version")
fetch("https://raw.githubusercontent.com/stefanpejcic/OpenPanel/refs/heads/main/version/latest")
.then(response => response.text())
.then(data => {
const version = data.trim();
@ -84,7 +83,7 @@ const Install: React.FC = () => {
return (
<CommonLayout>
<Head title="Install | OpenPanel">
<Head title="Install command generator | OpenPanel">
<html data-page="install" data-customized="true" />
</Head>
<div className="refine-prose">