mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 18:56:39 +00:00
Merge branch 'distribution' of github.com:fosrl/pangolin-saas into distribution
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 13 KiB |
@@ -59,7 +59,8 @@ type TokenPayload = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export class License {
|
export class License {
|
||||||
private phoneHomeInterval = 6 * 60 * 60; // 6 hours = 6 * 60 * 60 = 21600 seconds
|
// private phoneHomeInterval = 6 * 60 * 60; // 6 hours = 6 * 60 * 60 = 21600 seconds
|
||||||
|
private phoneHomeInterval = 30; // 30 seconds for testing
|
||||||
private serverBaseUrl = "https://api.fossorial.io";
|
private serverBaseUrl = "https://api.fossorial.io";
|
||||||
private validationServerUrl = `${this.serverBaseUrl}/api/v1/license/enterprise/validate`;
|
private validationServerUrl = `${this.serverBaseUrl}/api/v1/license/enterprise/validate`;
|
||||||
private activationServerUrl = `${this.serverBaseUrl}/api/v1/license/enterprise/activate`;
|
private activationServerUrl = `${this.serverBaseUrl}/api/v1/license/enterprise/activate`;
|
||||||
@@ -255,6 +256,7 @@ LQIDAQAB
|
|||||||
cached.type = payload.type;
|
cached.type = payload.type;
|
||||||
cached.tier = payload.tier;
|
cached.tier = payload.tier;
|
||||||
cached.iat = new Date(payload.iat * 1000);
|
cached.iat = new Date(payload.iat * 1000);
|
||||||
|
cached.terminateAt = new Date(payload.terminateAt);
|
||||||
|
|
||||||
// Encrypt the updated token before storing
|
// Encrypt the updated token before storing
|
||||||
const encryptedKey = encrypt(
|
const encryptedKey = encrypt(
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export default function CreateDomainForm({
|
|||||||
resolver: zodResolver(formSchema),
|
resolver: zodResolver(formSchema),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
baseDomain: "",
|
baseDomain: "",
|
||||||
type: build == "oss" ? "wildcard" : "ns"
|
type: build == "oss" || !env.flags.usePangolinDns ? "wildcard" : "ns"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export function LicenseKeysDataTable({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: "type",
|
accessorKey: "tier",
|
||||||
header: ({ column }) => {
|
header: ({ column }) => {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user