mirror of
https://github.com/OpenBankProject/API-Explorer-II.git
synced 2026-02-06 10:47:04 +00:00
docfix/Rename VITE_OBP_EXPLORER_HOST to VITE_OBP_API_EXPLORER_HOST
This commit is contained in:
parent
fc2af5b001
commit
0d5175b405
@ -1,7 +1,7 @@
|
||||
VITE_OBP_API_HOST=https://apisandbox.openbankproject.com
|
||||
VITE_OBP_API_VERSION=v5.1.0
|
||||
VITE_OBP_API_MANAGER_HOST=https://apimanagersandbox.openbankproject.com
|
||||
VITE_OBP_EXPLORER_HOST=http://localhost:5173
|
||||
VITE_OBP_API_EXPLORER_HOST=http://localhost:5173
|
||||
VITE_OBP_CONSUMER_KEY=your_consumer_key
|
||||
VITE_OBP_CONSUMER_SECRET=your_consumer_secret
|
||||
VITE_OBP_REDIRECT_URL=http://localhost:5173/api/callback
|
||||
@ -9,6 +9,7 @@ VITE_OPB_SERVER_SESSION_PASSWORD=very secret
|
||||
# The above code connects to localhost on port 6379.
|
||||
# To connect to a different host or port, use a connection string in the format
|
||||
# redis[s]://[[username][:password]@][host][:port][/db-number]
|
||||
# Be sure to secure your Redis instance
|
||||
VITE_OBP_REDIS_URL = redis://127.0.0.1:6379
|
||||
|
||||
# Product styling setting
|
||||
|
||||
@ -10,7 +10,7 @@ import path from 'path'
|
||||
|
||||
const port = 8085
|
||||
const app: Application = express()
|
||||
const host = process.env.VITE_OBP_EXPLORER_HOST
|
||||
const host = process.env.VITE_OBP_API_EXPLORER_HOST
|
||||
const httpsOrNot = host ? (host.indexOf('https://') == 0 ? true : false) : true
|
||||
|
||||
// Initialize client.
|
||||
|
||||
@ -8,7 +8,7 @@ import { OAuthConfig } from 'obp-typescript'
|
||||
@Service()
|
||||
@Controller('/status')
|
||||
export class StatusController {
|
||||
private obpExplorerHome = process.env.VITE_OBP_EXPLORER_HOST
|
||||
private obpExplorerHome = process.env.VITE_OBP_API_EXPLORER_HOST
|
||||
private connectors = [
|
||||
'kafka_vSept2018',
|
||||
'akka_vDec2018',
|
||||
|
||||
@ -8,7 +8,7 @@ import superagent from 'superagent'
|
||||
@Service()
|
||||
@Controller('/user')
|
||||
export class UserController {
|
||||
private obpExplorerHome = process.env.VITE_OBP_EXPLORER_HOST
|
||||
private obpExplorerHome = process.env.VITE_OBP_API_EXPLORER_HOST
|
||||
constructor(
|
||||
private obpClientService: OBPClientService,
|
||||
private oauthInjectedService: OauthInjectedService
|
||||
|
||||
@ -36,7 +36,7 @@ export default class OauthAccessTokenMiddleware implements ExpressMiddlewareInte
|
||||
}
|
||||
session['clientConfig'] = clientConfig
|
||||
console.log('OauthAccessTokenMiddleware.ts use says: Seems OK, redirecting..')
|
||||
response.redirect(`${process.env.VITE_OBP_EXPLORER_HOST}`)
|
||||
response.redirect(`${process.env.VITE_OBP_API_EXPLORER_HOST}`)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user