Skip to content

Commit 9ef761e

Browse files
committed
[MS] Update configuration to use dev & prod CryptPad servers
1 parent 8e3030a commit 9ef761e

File tree

7 files changed

+6
-15
lines changed

7 files changed

+6
-15
lines changed

client/.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ PARSEC_APP_CLEAR_CACHE="true"
1212
PARSEC_APP_TESTBED_AUTO_LOGIN="true"
1313
PARSEC_APP_ACCOUNT_SERVER="parsec3://dev-account.parsec.cloud"
1414
PARSEC_APP_DEFAULT_LIB_LOG_LEVEL="DEBUG"
15+
PARSEC_APP_DEFAULT_CRYPTPAD_SERVER="https://cryptpad-dev.parsec.cloud"

client/.env.playwright

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ PARSEC_APP_BMS_MOCKED_FUNCTIONS=""
88
PARSEC_APP_BMS_FAIL_FUNCTIONS=""
99
PARSEC_APP_CREATE_DEFAULT_WORKSPACES="false"
1010
PARSEC_APP_TESTBED_AUTO_LOGIN="false"
11+
PARSEC_APP_DEFAULT_CRYPTPAD_SERVER="https://cryptpad-dev.parsec.cloud"

client/.env.production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ PARSEC_APP_SIGN_URL=https://sign.parsec.cloud
44
PARSEC_APP_SAAS_SERVERS="saas-v3.parsec.cloud"
55
PARSEC_APP_TRIAL_SERVERS="trial.parsec.cloud"
66
PARSEC_APP_ENABLE_CUSTOM_BRANDING=true
7+
PARSEC_APP_DEFAULT_CRYPTPAD_SERVER="https://cryptpad.parsec.cloud"

client/.env.release-candidate

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ PARSEC_APP_SAAS_SERVERS="saas-v3.parsec.cloud;saas-demo-v3-mightyfairy.parsec.cl
55
PARSEC_APP_TRIAL_SERVERS="trial.parsec.cloud"
66
PARSEC_APP_DEFAULT_LIB_LOG_LEVEL="DEBUG"
77
PARSEC_APP_ENABLE_CUSTOM_BRANDING=true
8+
PARSEC_APP_DEFAULT_CRYPTPAD_SERVER="https://cryptpad.parsec.cloud"

client/electron/src/setup.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -581,19 +581,6 @@ export function setupContentSecurityPolicy(customScheme: string): void {
581581
CspDirective.WorkerSrc,
582582
],
583583
},
584-
{
585-
domain: 'https://centakina.ddns.net',
586-
directives: [
587-
CspDirective.DefaultSrc,
588-
CspDirective.ScriptSrc,
589-
CspDirective.ConnectSrc,
590-
CspDirective.ImgSrc,
591-
CspDirective.StyleSrc,
592-
CspDirective.FontSrc,
593-
CspDirective.FrameSrc,
594-
CspDirective.WorkerSrc,
595-
],
596-
},
597584
{
598585
domain: 'https://*.stripe.com',
599586
directives: [

client/src/services/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async function openTOS(tosLink: string): Promise<void> {
220220

221221
const ENABLE_EDITICS_VARIABLE = 'PARSEC_APP_ENABLE_EDITICS';
222222
const CRYPTPAD_SERVER_VARIABLE = 'PARSEC_APP_DEFAULT_CRYPTPAD_SERVER';
223-
const DEFAULT_CRYPTPAD_SERVER = 'https://centakina.ddns.net';
223+
const DEFAULT_CRYPTPAD_SERVER = 'https://cryptpad-dev.parsec.cloud';
224224

225225
function isEditicsEnabled(): boolean {
226226
return import.meta.env[ENABLE_EDITICS_VARIABLE] === 'true' || (window as any).TESTING_ENABLE_EDITICS === true;

client/tests/e2e/helpers/cryptpad.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { expect } from '@playwright/test';
44
import { MsPage } from '@tests/e2e/helpers/types';
55

66
// cspell:disable-next-line
7-
export const CRYPTPAD_SERVER = 'centakina.ddns.net';
7+
export const CRYPTPAD_SERVER = 'cryptpad-dev.parsec.cloud';
88

99
interface MockCryptpadOptions {
1010
timeout?: boolean;

0 commit comments

Comments
 (0)