56 lines
2.1 KiB
Markdown
56 lines
2.1 KiB
Markdown
# Redaction
|
|
|
|
## To Create a new Stack in rancher
|
|
|
|
Goto rancher.iqser.com: Select Cluster `Development`, go to apps, click launch and select `Redaction` from the `dev`
|
|
section. Add a new name and a new namespace. Select `answers-development.yaml` and add it to answers `Edit as yaml`.
|
|
|
|
For HTTPS / Cloudflare domain go to `workloads` -> `Loadbalancing` -> `select your stack`
|
|
Add cloudflare certificate and specify a hostname to use `timo-redaction-dev.iqser.cloud`
|
|
|
|
## Keycloak Staging Config
|
|
|
|
- keycloak:
|
|
- authServerUrl: 'https://redkc-staging.iqser.cloud/auth'
|
|
- client:
|
|
- secret: 'a4e8aa56-03b0-4e6b-b822-8ac1f41280c4'
|
|
|
|
## Default Testing URL
|
|
|
|
`https://dev-04.iqser.cloud/`
|
|
|
|
## Known errors
|
|
|
|
- In case of CORS or redirect_uri errors follow these steps:
|
|
- Go to `<HOST>.iqser.cloud/auth/admin/master/console`
|
|
- Login with `admin` and `admin1234`
|
|
- In the left menu go to `Clients`
|
|
- In the table click `redaction`
|
|
- Find `Valid Redirect URIs` input
|
|
- Under `/ui/*` add new value `http://localhost:4200/*`
|
|
- **Save**
|
|
|
|
## Test Users
|
|
|
|
| username | role | comment |
|
|
| ------------ | ------------------------------ | -------------------------- |
|
|
| guest | | cannot use the application |
|
|
| user | RED_USER | |
|
|
| red_manager | RED_MANAGER | |
|
|
| useradmin | RED_ADMIN, RED_USER | has super power ! |
|
|
| manageradmin | RED_ADMIN RED_MANAGER RED_USER | has super super power ! |
|
|
|
|
Password for all users is `OsloImWinter!23`
|
|
|
|
### Running the app locally
|
|
|
|
Requirements:
|
|
* node 16 or newer installed ( https://nodejs.org/en/download/ )
|
|
* yarn ( execute `npm install -g yarn` in any terminal after installing node )
|
|
|
|
In the root folder simply execute `yarn install` followed by `yarn start`.
|
|
The file `apps/red-ui/src/assets/config.config.json` contains the configuration for local development. All properties defined here are later available via env variables.
|
|
|
|
|
|
|