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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user