mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-27 06:05:02 +02:00
Working on deployment 2
This commit is contained in:
parent
778491b49f
commit
a90347183d
3 changed files with 13 additions and 14 deletions
|
@ -122,7 +122,7 @@ async function getNextAvailableSubnet(): Promise<string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace the last octet with 1
|
// replace the last octet with 1
|
||||||
subnet = subnet.split('.').slice(0, 3).join('.') + '.1';
|
subnet = subnet.split('.').slice(0, 3).join('.') + '.1' + subnet.split('/')[1];
|
||||||
return subnet;
|
return subnet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,18 +68,17 @@ export default async function ConfigurationLaytout(
|
||||||
}
|
}
|
||||||
|
|
||||||
let orgs: ListOrgsResponse["orgs"] = [];
|
let orgs: ListOrgsResponse["orgs"] = [];
|
||||||
try {
|
// try {
|
||||||
const res = await internal.get<AxiosResponse<ListOrgsResponse>>(
|
// const res = await internal.get<AxiosResponse<ListOrgsResponse>>(
|
||||||
`/orgs`,
|
// `/orgs`,
|
||||||
cookie
|
// cookie
|
||||||
);
|
// );
|
||||||
if (res && res.data.data.orgs) {
|
// if (res && res.data.data.orgs) {
|
||||||
orgs = res.data.data.orgs;
|
// orgs = res.data.data.orgs;
|
||||||
}
|
// }
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
console.error("Error fetching orgs", e);
|
// console.error("Error fetching orgs", e);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="w-full bg-muted mb-6 select-none sm:px-0 px-3 pt-3">
|
<div className="w-full bg-muted mb-6 select-none sm:px-0 px-3 pt-3">
|
||||||
|
|
|
@ -118,7 +118,7 @@ PrivateKey = ${keypair.privateKey}
|
||||||
|
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = ${siteDefaults.publicKey}
|
PublicKey = ${siteDefaults.publicKey}
|
||||||
AllowedIPs = ${siteDefaults.address}
|
AllowedIPs = ${siteDefaults.address.split("/")[0]}/32
|
||||||
Endpoint = ${siteDefaults.endpoint}:${siteDefaults.listenPort}
|
Endpoint = ${siteDefaults.endpoint}:${siteDefaults.listenPort}
|
||||||
PersistentKeepalive = 5`
|
PersistentKeepalive = 5`
|
||||||
: "";
|
: "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue