Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
refactor(backend:sync): replace `APP_STORE_URL` with `RELEASES_URL` to support v2
johaven740d791fad9d
diff --git a/backend/src/applications/sync/constants/store.ts b/backend/src/applications/sync/constants/store.tsindex b4e97159..ce78a98f 100644--- a/backend/src/applications/sync/constants/store.ts+++ b/backend/src/applications/sync/constants/store.ts@@ -1,4 +1,3 @@-export const APP_STORE_URL = 'https://updates.sync-in.org'export const APP_STORE_DIRNAME = 'releases'export const APP_STORE_MANIFEST_FILE = 'latest.json'diff --git a/backend/src/applications/sync/services/sync-clients-manager.service.ts b/backend/src/applications/sync/services/sync-clients-manager.service.tsindex 6ef5ea69..0b3976a0 100644--- a/backend/src/applications/sync/services/sync-clients-manager.service.ts+++ b/backend/src/applications/sync/services/sync-clients-manager.service.ts@@ -10,7 +10,7 @@ import { FastifyAuthenticatedRequest } from '../../../authentication/interfaces/import { AuthProvider } from '../../../authentication/providers/auth-providers.models'import { AuthProvider2FA } from '../../../authentication/providers/two-fa/auth-provider-two-fa.service'import { convertHumanTimeToSeconds } from '../../../common/functions'-import { currentTimeStamp } from '../../../common/shared'+import { currentTimeStamp, RELEASES_URL } from '../../../common/shared'import { STATIC_PATH } from '../../../configuration/config.constants'import { configuration } from '../../../configuration/config.environment'import { CacheDecorator } from '../../../infrastructure/cache/cache.decorator'@@ -20,7 +20,7 @@ import { USER_PERMISSION } from '../../users/constants/user'import { UserModel } from '../../users/models/user.model'import { UsersManager } from '../../users/services/users-manager.service'import { CLIENT_AUTH_TYPE, CLIENT_TOKEN_EXPIRATION_TIME, CLIENT_TOKEN_EXPIRED_ERROR, CLIENT_TOKEN_RENEW_TIME } from '../constants/auth'-import { APP_STORE_DIRNAME, APP_STORE_MANIFEST_FILE, APP_STORE_REPOSITORY, APP_STORE_URL } from '../constants/store'+import { APP_STORE_DIRNAME, APP_STORE_MANIFEST_FILE, APP_STORE_REPOSITORY } from '../constants/store'import { SYNC_CLIENT_TYPE } from '../constants/sync'import type { SyncClientAuthDto } from '../dtos/sync-client-auth.dto'import { SyncClientAuthRegistrationDto, SyncClientRegistrationDto } from '../dtos/sync-client-registration.dto'@@ -170,7 +170,7 @@ export class SyncClientsManager {async checkAppStore(): Promise<AppStoreManifest> {let manifest: AppStoreManifest = nullif (configuration.applications.appStore.repository === APP_STORE_REPOSITORY.PUBLIC) {- const url = `${APP_STORE_URL}/${APP_STORE_MANIFEST_FILE}`+ const url = `${RELEASES_URL}/${APP_STORE_MANIFEST_FILE}`try {const res: AxiosResponse = await this.http.axiosRef({method: HTTP_METHOD.GET,diff --git a/backend/src/common/shared.ts b/backend/src/common/shared.tsindex 806bbf89..07897fc9 100644--- a/backend/src/common/shared.ts+++ b/backend/src/common/shared.ts@@ -3,11 +3,12 @@import { SPACE_PERMS_SEP } from '../applications/spaces/constants/spaces'export const SERVER_NAME = 'Sync-in' as const+export const RELEASES_URL = 'https://releases.sync-in.org' as constexport const APP_URL = {WEBSITE: 'https://sync-in.com',RELEASES: 'https://github.com/Sync-in/server/releases',- SERVER_VERSION_MANIFEST: 'https://releases.sync-in.org/sync-in-server/latest.json'+ SERVER_VERSION_MANIFEST: `${RELEASES_URL}/sync-in-server/latest.json`} as const// eslint-disable-next-line no-control-regexdiff --git a/package.json b/package.jsonindex 37edcceb..4d070fb4 100755--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"productName": "Sync-in","name": "sync-in-server","version": "1.11.0",- "description": "The secure, open-source platform for file storage, sharing, collaboration, and sync",+ "description": "The secure, open-source platform for file storage, sharing, collaboration, and syncing","keywords": ["sync-in","self-hosted",@@ -51,7 +51,7 @@"name": "Johan Legrand","email": "[email protected]"},- "homepage": "https://github.com/Sync-in/server#readme",+ "homepage": "https://sync-in.com","repository": {"type": "git","url": "git+https://github.com/Sync-in/server.git"