Rename SUBSD_* env vars to SUBS_* to match upstream refactor
The upstream SpacesOps app refactored its SUBSD_* environment variables to SUBS_* (verified against server.js in spacesops/spacesops:v1.0.0). Update the package to match so the configured values reach the app: - main.ts: inject SUBS_URI_VALUE / SUBS_RPC_USER / SUBS_RPC_PASSWORD. - configurePlatform action + storeJson: rename store keys subsd*→subs* and the field labels/descriptions (SUBS URL / SUBS RPC User / SUBS RPC Password). - README, instructions, release notes: SUBSD→SUBS. Note: the image's /app/setup-spacesops-env.sh still exports SUBSD_* defaults (partial upstream refactor) — see report; vars the package does not set (e.g. SUBS_RPC_URL) currently have no in-image default. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -65,10 +65,10 @@ const inputSpec = InputSpec.of({
|
||||
minLength: null,
|
||||
maxLength: null,
|
||||
}),
|
||||
subsdUrl: Value.text({
|
||||
name: i18n('SUBSD URL'),
|
||||
subsUrl: Value.text({
|
||||
name: i18n('SUBS URL'),
|
||||
description: i18n(
|
||||
'Optional SUBSD service URL (SUBSD_URI_VALUE) for the subname-purchase flow. Leave blank to disable.',
|
||||
'Optional SUBS service URL (SUBS_URI_VALUE) for the subname-purchase flow. Leave blank to disable.',
|
||||
),
|
||||
warning: null,
|
||||
footnote: null,
|
||||
@@ -79,9 +79,9 @@ const inputSpec = InputSpec.of({
|
||||
minLength: null,
|
||||
maxLength: null,
|
||||
}),
|
||||
subsdUser: Value.text({
|
||||
name: i18n('SUBSD RPC User'),
|
||||
description: i18n('Optional SUBSD RPC username (SUBSD_RPC_USER).'),
|
||||
subsUser: Value.text({
|
||||
name: i18n('SUBS RPC User'),
|
||||
description: i18n('Optional SUBS RPC username (SUBS_RPC_USER).'),
|
||||
warning: null,
|
||||
footnote: null,
|
||||
default: null,
|
||||
@@ -91,9 +91,9 @@ const inputSpec = InputSpec.of({
|
||||
minLength: null,
|
||||
maxLength: null,
|
||||
}),
|
||||
subsdPassword: Value.text({
|
||||
name: i18n('SUBSD RPC Password'),
|
||||
description: i18n('Optional SUBSD RPC password (SUBSD_RPC_PASSWORD).'),
|
||||
subsPassword: Value.text({
|
||||
name: i18n('SUBS RPC Password'),
|
||||
description: i18n('Optional SUBS RPC password (SUBS_RPC_PASSWORD).'),
|
||||
warning: null,
|
||||
footnote: null,
|
||||
default: null,
|
||||
@@ -113,7 +113,7 @@ export const configurePlatform = sdk.Action.withInput(
|
||||
async ({ effects }) => ({
|
||||
name: i18n('Configure Platform'),
|
||||
description: i18n(
|
||||
'Set optional SpacesOps settings: Nostr relay, theme mode, CoinGecko pricing, and SUBSD backend. Saving restarts the service so the new settings take effect.',
|
||||
'Set optional SpacesOps settings: Nostr relay, theme mode, CoinGecko pricing, and SUBS backend. Saving restarts the service so the new settings take effect.',
|
||||
),
|
||||
warning: null,
|
||||
allowedStatuses: 'any',
|
||||
@@ -133,9 +133,9 @@ export const configurePlatform = sdk.Action.withInput(
|
||||
coingeckoApiKey: store?.coingeckoApiKey ?? null,
|
||||
coingeckoTokenCoins:
|
||||
store?.coingeckoTokenCoins ?? DEFAULT_COINGECKO_TOKEN_COINS,
|
||||
subsdUrl: store?.subsdUrl ?? null,
|
||||
subsdUser: store?.subsdUser ?? null,
|
||||
subsdPassword: store?.subsdPassword ?? null,
|
||||
subsUrl: store?.subsUrl ?? null,
|
||||
subsUser: store?.subsUser ?? null,
|
||||
subsPassword: store?.subsPassword ?? null,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -146,9 +146,9 @@ export const configurePlatform = sdk.Action.withInput(
|
||||
platformMode: input.platformMode,
|
||||
coingeckoApiKey: input.coingeckoApiKey || null,
|
||||
coingeckoTokenCoins: input.coingeckoTokenCoins || null,
|
||||
subsdUrl: input.subsdUrl || null,
|
||||
subsdUser: input.subsdUser || null,
|
||||
subsdPassword: input.subsdPassword || null,
|
||||
subsUrl: input.subsUrl || null,
|
||||
subsUser: input.subsUser || null,
|
||||
subsPassword: input.subsPassword || null,
|
||||
})
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user