-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CHANGELOG.md * Update TERMS_AND_CONDITIONS.md * Update TERMS_AND_CONDITIONS.md * Adding script to clear pro config * Fixed #1863 * Closes caprover/caprover-pro#3 * Updated the changelog * Fixed #1859 * updated the changelogs * Fixed #1871 * Upped version - ready for hotfix
- Loading branch information
1 parent
a7c434e
commit b7c114e
Showing
11 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/*jshint esversion: 6 */ | ||
|
||
const fs = require('fs-extra') | ||
const CONFIG_FILE_PATH = '/captain/data/config-captain.json' | ||
|
||
const fileContent = JSON.parse( | ||
fs.readFileSync(CONFIG_FILE_PATH, { | ||
encoding: 'utf-8', | ||
}) | ||
) | ||
|
||
fs.writeFileSync(CONFIG_FILE_PATH + '.backup', JSON.stringify(fileContent)) | ||
|
||
fileContent.pro = {} | ||
|
||
fs.writeFileSync(CONFIG_FILE_PATH, JSON.stringify(fileContent)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import DataStoreProvider from '../datastore/DataStoreProvider' | ||
|
||
DataStoreProvider.getDataStore('captain') | ||
.getProDataStore() | ||
.setOtpEnabled(false) | ||
.catch((err) => console.log(err)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ const CONSTANT_FILE_OVERRIDE_USER = | |
const configs = { | ||
publishedNameOnDockerHub: 'caprover/caprover', | ||
|
||
version: '1.11.0', | ||
version: '1.11.1', | ||
|
||
defaultMaxLogSize: '512m', | ||
|
||
|
@@ -41,7 +41,7 @@ const configs = { | |
|
||
appPlaceholderImageName: 'caprover/caprover-placeholder-app:latest', | ||
|
||
nginxImageName: 'nginx:1', | ||
nginxImageName: 'nginx:1.24', | ||
|
||
defaultEmail: '[email protected]', | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,13 @@ test('Testing - sanitizeRepoPathSsh', () => { | |
).toBe('ssh://[email protected]:22/username/repository.git') | ||
}) | ||
|
||
test('Testing - sanitizeRepoPathSsh', () => { | ||
expect( | ||
GitHelper.sanitizeRepoPathSsh(' [email protected]/test1/test2/test3.git') | ||
.repoPath | ||
).toBe('ssh://[email protected]:22/test1/test2/test3.git') | ||
}) | ||
|
||
test('Testing - sanitizeRepoPathSsh - port', () => { | ||
expect( | ||
GitHelper.sanitizeRepoPathSsh( | ||
|
@@ -118,14 +125,6 @@ test('Testing - sanitizeRepoPathSsh - no owner', () => { | |
).toBe('ssh://[email protected]:22/repository.git') | ||
}) | ||
|
||
test('Testing - sanitizeRepoPathSsh - invalid url', () => { | ||
expect(() => | ||
GitHelper.sanitizeRepoPathSsh( | ||
' git:[email protected]/owner/repository.git/ ' | ||
) | ||
).toThrow(Error) | ||
}) | ||
|
||
test('Testing - getDomainFromSanitizedSshRepoPath - pure', () => { | ||
expect( | ||
GitHelper.getDomainFromSanitizedSshRepoPath( | ||
|