diff --git a/cli/commands/clearExitNodes.ts b/cli/commands/clearExitNodes.ts index 2a2832039..c7512a18c 100644 --- a/cli/commands/clearExitNodes.ts +++ b/cli/commands/clearExitNodes.ts @@ -23,7 +23,7 @@ export const clearExitNodes: CommandModule< // Delete all exit nodes const deletedCount = await db .delete(exitNodes) - .where(eq(exitNodes.exitNodeId, exitNodes.exitNodeId)) .returning();; // delete all + .where(eq(exitNodes.exitNodeId, exitNodes.exitNodeId)).returning();; // delete all console.log(`Deleted ${deletedCount.length} exit node(s) from the database`); diff --git a/messages/en-US.json b/messages/en-US.json index c56739815..9adfad8d5 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -152,7 +152,7 @@ "siteResourcesHowToAccess": "How to access", "siteResourcesTargetsOnSite": "Targets on this site", "siteSetting": "{siteName} Settings", - "siteNewtTunnel": "Newt Site (Recommended)", + "siteNewtTunnel": "Pangolin Site (Recommended)", "siteNewtTunnelDescription": "Easiest way to create an entrypoint into any network. No extra setup.", "siteWg": "Basic WireGuard", "siteWgDescription": "Use any WireGuard client to establish a tunnel. Manual NAT setup required.", diff --git a/src/components/newt-install-commands.tsx b/src/components/newt-install-commands.tsx index ddb4cad92..f0496382e 100644 --- a/src/components/newt-install-commands.tsx +++ b/src/components/newt-install-commands.tsx @@ -45,14 +45,12 @@ export type NewtSiteInstallCommandsProps = { id: string; secret: string; endpoint: string; - version?: string; }; export function NewtSiteInstallCommands({ id, secret, - endpoint, - version = "latest" + endpoint }: NewtSiteInstallCommandsProps) { const t = useTranslations(); const { env } = useEnvContext(); @@ -200,10 +198,7 @@ sudo systemctl enable --now pangolin-site` Run: [ { title: t("install"), - link: - version === "latest" - ? `https://github.com/fosrl/cli/releases/latest/download/pangolin-cli_windows_installer.msi` - : `https://github.com/fosrl/cli/releases/download/${version}/pangolin-cli_windows_installer.msi` + link: `https://github.com/fosrl/cli/releases/latest/download/pangolin-cli_windows_installer.msi` }, { title: t("run"), @@ -213,15 +208,15 @@ sudo systemctl enable --now pangolin-site` Service: [ { title: t("install"), - command: `curl -fsSL https://static.pangolin.net/get-cli.sh | bash` + link: `https://github.com/fosrl/cli/releases/latest/download/pangolin-cli_windows_installer.msi` }, { title: t("run"), - command: `sudo pangolin service install site --id ${id} --secret ${secret} --endpoint ${endpoint}${acceptClientsFlag}${disableSshFlag}` + command: `pangolin service install site --id ${id} --secret ${secret} --endpoint ${endpoint}${acceptClientsFlag}${disableSshFlag}` }, { title: t("check"), - command: `sudo pangolin service status site` + command: `pangolin service status site` } ] }, @@ -266,15 +261,15 @@ sudo systemctl enable --now pangolin-site` podman: { "Podman Quadlet": [ `[Unit] -Description=Newt container +Description=Pangolin Site Container [Container] -ContainerName=newt -Image=docker.io/fosrl/newt +ContainerName=pangolin-site +Image=docker.io/fosrl/pangolin-cli Environment=PANGOLIN_ENDPOINT=${endpoint} Environment=SITE_ID=${id} Environment=SITE_SECRET=${secret}${!acceptClients ? "\nEnvironment=DISABLE_CLIENTS=true" : ""} -# Secret=newt-secret,type=env,target=SITE_SECRET +# Secret=pangolin-secret,type=env,target=SITE_SECRET [Service] Restart=always @@ -327,9 +322,7 @@ WantedBy=default.target` /> - label={ - platform === "windows" ? t("architecture") : t("method") - } + label={t("method")} options={getArchitectures(platform).map((arch) => ({ value: arch, label: arch @@ -528,11 +521,11 @@ function getPlatformName(platformName: Platform) { function getArchitectures(platform: Platform) { switch (platform) { case "linux": - return ["Run", "Systemd Service"]; + return ["Run", "Auto Systemd Service", "Manual Systemd Service"]; case "macos": - return ["Run"]; + return ["Run", "Service"]; case "windows": - return ["x64"]; + return ["Run", "Service"]; case "docker": return ["Docker Compose", "Docker Run"]; case "kubernetes": diff --git a/src/components/olm-install-commands.tsx b/src/components/olm-install-commands.tsx index 1b299d559..79768c04b 100644 --- a/src/components/olm-install-commands.tsx +++ b/src/components/olm-install-commands.tsx @@ -26,14 +26,12 @@ export type OlmInstallCommandsProps = { id: string; secret: string; endpoint: string; - version?: string; }; export function OlmInstallCommands({ id, secret, - endpoint, - version = "latest" + endpoint }: OlmInstallCommandsProps) { const t = useTranslations(); @@ -94,10 +92,7 @@ export function OlmInstallCommands({ Run: [ { title: t("install"), - link: - version === "latest" - ? `https://github.com/fosrl/cli/releases/latest/download/pangolin-cli_windows_installer.msi` - : `https://github.com/fosrl/cli/releases/download/${version}/pangolin-cli_windows_installer.msi` + link: `https://github.com/fosrl/cli/releases/latest/download/pangolin-cli_windows_installer.msi` }, { title: t("run"), @@ -107,15 +102,15 @@ export function OlmInstallCommands({ Service: [ { title: t("install"), - command: `curl -fsSL https://static.pangolin.net/get-cli.sh | bash` + link: `https://github.com/fosrl/cli/releases/latest/download/pangolin-cli_windows_installer.msi` }, { title: t("run"), - command: `sudo pangolin service install client --id ${id} --secret ${secret} --endpoint ${endpoint}` + command: `pangolin service install client --id ${id} --secret ${secret} --endpoint ${endpoint}` }, { title: t("check"), - command: `sudo pangolin service status client` + command: `pangolin service status client` } ] } @@ -155,9 +150,7 @@ export function OlmInstallCommands({ /> - label={ - platform === "docker" ? t("method") : t("architecture") - } + label={t("method")} options={getArchitectures(platform).map((arch) => ({ value: arch, label: arch @@ -225,13 +218,13 @@ export function OlmInstallCommands({ function getArchitectures(platform: Platform) { switch (platform) { case "unix": - return ["All"]; + return ["Run", "Service"]; case "windows": - return ["x64"]; + return ["Run", "Service"]; case "docker": return ["Docker Compose", "Docker Run"]; default: - return ["x64"]; + return ["Run"]; } }