Skip to content

Commit

Permalink
security: OLLAMA_ORIGINS='app://obsidian.md*'
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobrauchtgit committed Apr 7, 2024
1 parent 3d523f8 commit 11535c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Interact with your privacy focused assistant, leveraging Ollama or OpenAI, making your second brain even smarter.",
"author": "Leo310, nicobrauchtgit",
"authorUrl": "https://github.com/nicobrauchtgit",
"version": "1.0.1",
"version": "1.0.2",
"minAppVersion": "1.5.0",
"isDesktopOnly": true
}
4 changes: 2 additions & 2 deletions src/components/Onboarding/OllamaApp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
{#if isRunning}
{#if osType === 'Darwin'}
<li>{$t('onboarding.ollama.app.set_origins')}</li>
<div class="w-max max-w-full text-xs *:flex *:rounded *:pr-1" use:renderMarkdown={(this, '```bash\nlaunchctl setenv OLLAMA_ORIGINS "*"\n```')} />
<div class="w-max max-w-full text-xs *:flex *:rounded *:pr-1" use:renderMarkdown={(this, '```bash\nlaunchctl setenv OLLAMA_ORIGINS "app://obsidian.md*"\n```')} />
<li>
{$t('onboarding.ollama.app.restart')}<span aria-label={$t('onboarding.ollama.app.restart_label')} use:icon={'help-circle'} />
</li>
{:else if osType === 'Windows_NT'}
<li>{$t('onboarding.ollama.app.quit')}<span aria-label={$t('onboarding.ollama.app.quit_label')} use:icon={'help-circle'} /></li>
<li>{$t('onboarding.ollama.app.start_origins')}</li>
<div class="w-max max-w-full text-xs *:flex *:rounded *:pr-1" use:renderMarkdown={(this, '```bash\n$env:OLLAMA_ORIGINS="*"; ollama serve\n```')} />
<div class="w-max max-w-full text-xs *:flex *:rounded *:pr-1" use:renderMarkdown={(this, '```bash\n$env:OLLAMA_ORIGINS="app://obsidian.md*"; ollama serve\n```')} />
{/if}
<OllamaSetup {scrollToBottom} />
{/if}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Onboarding/OllamaDaemon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
</div>
</li>
<li>{$t('onboarding.ollama.deamon.start')}</li>
<div class="w-max max-w-full text-xs *:flex *:rounded *:pr-1" use:renderMarkdown={(this, '```bash\nOLLAMA_ORIGINS="*" ollama serve\n```')} />
<div class="w-max max-w-full text-xs *:flex *:rounded *:pr-1" use:renderMarkdown={(this, '```bash\OLLAMA_ORIGINS="app://obsidian.md*" ollama serve\n```')} />
<OllamaSetup {scrollToBottom} />
</ol>
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"0.5.0": "1.5.0"
"0.6.0": "1.5.0"
"1.0.0": "1.5.0"
"1.0.2": "1.5.0"
}

0 comments on commit 11535c0

Please sign in to comment.