Update the install and run commands to use the cli

This commit is contained in:
Owen
2026-09-08 17:23:49 -04:00
parent 251f2dd1de
commit eb133f6254
4 changed files with 24 additions and 38 deletions
+1 -1
View File
@@ -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`);
+1 -1
View File
@@ -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.",
+13 -20
View File
@@ -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`
/>
<OptionSelect<string>
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":
+9 -16
View File
@@ -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({
/>
<OptionSelect<string>
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"];
}
}