feat: updated backend

This commit is contained in:
=
2025-02-26 20:45:38 +05:30
parent afd444cad6
commit 17e576511b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ const SanitizedGatewaySchema = GatewaysSchema.pick({
}); });
const isValidRelayAddress = (relayAddress: string) => { const isValidRelayAddress = (relayAddress: string) => {
const [ip, port] = relayAddress.split(":"); const [ip, port] = relayAddress.split(":");
return isValidIp(ip) && Number(port) <= 65535 && Number(port) >= 49152; return isValidIp(ip) && Number(port) <= 65535 && Number(port) >= 40000;
}; };
export const registerGatewayRouter = async (server: FastifyZodProvider) => { export const registerGatewayRouter = async (server: FastifyZodProvider) => {
@@ -17,7 +17,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
environmentsUsed: 0, environmentsUsed: 0,
identityLimit: null, identityLimit: null,
identitiesUsed: 0, identitiesUsed: 0,
dynamicSecret: true, dynamicSecret: false,
secretVersioning: true, secretVersioning: true,
pitRecovery: false, pitRecovery: false,
ipAllowlisting: false, ipAllowlisting: false,
@@ -52,7 +52,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
enforceMfa: false, enforceMfa: false,
projectTemplates: false, projectTemplates: false,
kmip: false, kmip: false,
gateway: true gateway: false
}); });
export const setupLicenseRequestWithStore = (baseURL: string, refreshUrl: string, licenseKey: string) => { export const setupLicenseRequestWithStore = (baseURL: string, refreshUrl: string, licenseKey: string) => {