Fix self-host API key proxy auth

This commit is contained in:
BigBodyCobain
2026-05-28 01:54:23 -06:00
parent ef52bd03d2
commit be3ab5823a
4 changed files with 181 additions and 8 deletions
+1 -1
View File
@@ -1325,7 +1325,7 @@ const SettingsPanel = React.memo(function SettingsPanel({
className={`flex-1 px-4 py-2.5 text-sm font-mono tracking-widest font-bold transition-colors flex items-center justify-center gap-1.5 ${activeTab === 'sentinel' ? 'text-purple-400 border-b-2 border-purple-500 bg-purple-950/10' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]'}`}
>
<Satellite size={10} />
{t('settings.shodan').toUpperCase()}
SENTINEL
</button>
<button
onClick={() => setActiveTab('sar')}
+2 -2
View File
@@ -576,7 +576,7 @@ export default function ShodanPanel({
fetch(`${API_BASE}/api/settings/api-keys`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ env_key: 'SHODAN_API_KEY', value: shodanApiKey.trim() }),
body: JSON.stringify({ SHODAN_API_KEY: shodanApiKey.trim() }),
})
.then(() => refreshStatus())
.finally(() => setKeySaving(false));
@@ -599,7 +599,7 @@ export default function ShodanPanel({
fetch(`${API_BASE}/api/settings/api-keys`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ env_key: 'SHODAN_API_KEY', value: shodanApiKey.trim() }),
body: JSON.stringify({ SHODAN_API_KEY: shodanApiKey.trim() }),
})
.then(() => refreshStatus())
.finally(() => setKeySaving(false));