Git proxy origins are configured separately from git credentials

This commit is contained in:
Alex Gleason committed 2025-12-28 16:19:52 -06:00
1 parent f5036b8b56
commit b60d11186b
15 files changed
+35 -47

No files matched your search

+4
View File
@@ -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: [],