mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-04 11:34:19 +00:00
Compare commits
1 Commits
crowdin_de
...
newt-insta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1772ac220f |
@@ -52,6 +52,10 @@ export function NewtSiteInstallCommands({
|
|||||||
const acceptClientsEnv = !acceptClients
|
const acceptClientsEnv = !acceptClients
|
||||||
? "\n - DISABLE_CLIENTS=true"
|
? "\n - DISABLE_CLIENTS=true"
|
||||||
: "";
|
: "";
|
||||||
|
const acceptClientsHelmValue = acceptClients
|
||||||
|
? ` \\
|
||||||
|
--set newtInstances[0].acceptClients=true`
|
||||||
|
: "";
|
||||||
|
|
||||||
const commandList: Record<Platform, Record<string, CommandItem[]>> = {
|
const commandList: Record<Platform, Record<string, CommandItem[]>> = {
|
||||||
linux: {
|
linux: {
|
||||||
@@ -162,13 +166,18 @@ sudo systemctl enable --now newt`
|
|||||||
"Helm Chart": [
|
"Helm Chart": [
|
||||||
`helm repo add fossorial https://charts.fossorial.io`,
|
`helm repo add fossorial https://charts.fossorial.io`,
|
||||||
`helm repo update fossorial`,
|
`helm repo update fossorial`,
|
||||||
`helm install newt fossorial/newt \\
|
`kubectl create namespace newt --dry-run=client -o yaml | kubectl apply -f -`,
|
||||||
--create-namespace \\
|
`kubectl create secret generic newt-main-tunnel-auth \\
|
||||||
--set newtInstances[0].name="main-tunnel" \\
|
-n newt \\
|
||||||
--set newtInstances[0].enabled=true \\
|
--from-literal=PANGOLIN_ENDPOINT="${endpoint}" \\
|
||||||
--set-string newtInstances[0].auth.keys.endpointKey="${endpoint}" \\
|
--from-literal=NEWT_ID="${id}" \\
|
||||||
--set-string newtInstances[0].auth.keys.idKey="${id}" \\
|
--from-literal=NEWT_SECRET="${secret}" \\
|
||||||
--set-string newtInstances[0].auth.keys.secretKey="${secret}"`
|
--dry-run=client -o yaml | kubectl apply -f -`,
|
||||||
|
`helm upgrade --install newt fossorial/newt \\
|
||||||
|
-n newt \\
|
||||||
|
--set newtInstances[0].name="main-tunnel" \\
|
||||||
|
--set newtInstances[0].enabled=true \\
|
||||||
|
--set-string newtInstances[0].auth.existingSecretName="newt-main-tunnel-auth"${acceptClientsHelmValue}`
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
podman: {
|
podman: {
|
||||||
|
|||||||
Reference in New Issue
Block a user