feat: Added env settings for image proxy

This commit is contained in:
florian 2024-03-08 20:16:16 +00:00
parent 72575edcc3
commit 4d197aaeea
3 changed files with 7 additions and 5 deletions

2
.env.sample Normal file
View File

@ -0,0 +1,2 @@
VITE_APP_NAME=slidestr.net
VITE_IMAGE_PROXY=https://imgproxy.slidestr.net

View File

@ -1,11 +1,7 @@
# TODO # TODO
- add load more, to load older events - add load more, to load older events
- repair auto login
- store NIP46 secret key
- Fix/Test zaps - Fix/Test zaps
- Reimplement Likes/Zaps based in ngine code - Reimplement Likes/Zaps based in ngine code
- Investigate profile caching
- Avatar display is laggy, needs caching
- move settings dialog to main start screen - move settings dialog to main start screen
- replace search icon with nav back button - replace search icon with nav back button
- record demo explaination video - record demo explaination video
@ -17,3 +13,4 @@
- think about use of ui framework, and redesign settings dialog - think about use of ui framework, and redesign settings dialog
- move NSFW block list into a list event on an slidestr.net profile (public nsfw mute list) - move NSFW block list into a list event on an slidestr.net profile (public nsfw mute list)
- Add key/salt to imageproxy, see snort impl - Add key/salt to imageproxy, see snort impl
- caching of preprocessed images with index?

View File

@ -1,6 +1,9 @@
import { nip19 } from 'nostr-tools'; import { nip19 } from 'nostr-tools';
export const appName = 'slidestr.net'; export const imageProxy = import.meta.env.VITE_IMAGE_PROXY || 'https://imgproxy.slidestr.net';
export const appName = import.meta.env.VITE_APP_NAME || 'slidestr.net';
type Topic = { type Topic = {
name?: string; name?: string;
tags: string[]; tags: string[];