mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Git proxy origins are configured separately from git credentials
This commit is contained in:
15 files changed
+35
-47
No files matched your search
@@ -40,6 +40,7 @@ function createWrapper(corsProxy: string) {
|
||||
templates: [{ name: 'MKStack', description: 'Build Nostr clients with React.', url: 'https://gitlab.com/soapbox-pub/mkstack.git' }],
|
||||
esmUrl: 'https://esm.test',
|
||||
corsProxy,
|
||||
gitProxyOrigins: ['https://github.com', 'https://gitlab.com'],
|
||||
faviconUrl: 'https://external-content.duckduckgo.com/ip3/{hostname}.ico',
|
||||
ngitWebUrl: 'https://nostrhub.io/{naddr}',
|
||||
previewDomain: 'local-test.dev',
|
||||
@@ -93,6 +94,7 @@ describe('useGit', () => {
|
||||
fs: mockFS,
|
||||
nostr: mockNostr,
|
||||
corsProxy: 'https://cors.isomorphic-git.org',
|
||||
gitProxyOrigins: ['https://github.com', 'https://gitlab.com'],
|
||||
relayList: [{ url: new URL('wss://relay.test/'), read: true, write: true }],
|
||||
graspList: [{ url: new URL('wss://git.shakespeare.diy/') }, { url: new URL('wss://relay.ngit.dev/') }],
|
||||
credentials: [],
|
||||
@@ -110,6 +112,7 @@ describe('useGit', () => {
|
||||
fs: mockFS,
|
||||
nostr: mockNostr,
|
||||
corsProxy: 'https://custom-cors.example.com',
|
||||
gitProxyOrigins: ['https://github.com', 'https://gitlab.com'],
|
||||
relayList: [{ url: new URL('wss://relay.test/'), read: true, write: true }],
|
||||
graspList: [{ url: new URL('wss://git.shakespeare.diy/') }, { url: new URL('wss://relay.ngit.dev/') }],
|
||||
credentials: [],
|
||||
@@ -127,6 +130,7 @@ describe('useGit', () => {
|
||||
fs: mockFS,
|
||||
nostr: mockNostr,
|
||||
corsProxy: 'https://cors.isomorphic-git.org',
|
||||
gitProxyOrigins: ['https://github.com', 'https://gitlab.com'],
|
||||
relayList: [{ url: new URL('wss://relay.test/'), read: true, write: true }],
|
||||
graspList: [{ url: new URL('wss://git.shakespeare.diy/') }, { url: new URL('wss://relay.ngit.dev/') }],
|
||||
credentials: [],
|
||||
|
||||
Reference in new issue
Block a user