Configure share link origins from clearnet scheme and onion hostname.

Lets the frontend build full viewer and delete URLs for both networks without hardcoding host shape in components.
This commit is contained in:
2026-10-25 22:00:05 +01:00
parent 95ed6e5f58
commit 5f6ee193e7
3 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -14,8 +14,10 @@ const isEnabled = (key: string): boolean => env(key) === 'true';
export const config = {
baseUrl: env('VITE_API_BASE_URL'),
clearnetDomain: env('VITE_CLEARNET_DOMAIN'),
onionHostname: env('VITE_ONION_HOSTNAME'),
shareOrigins: {
clearnet: `${env('VITE_CLEARNET_SCHEME')}://${env('VITE_CLEARNET_DOMAIN')}`,
onion: `http://${env('VITE_ONION_HOSTNAME')}`
},
altcha: {
enabled: isEnabled('VITE_ALTCHA_ENABLED'),
maxNumber: envInt('VITE_ALTCHA_MAX_NUMBER')