129 lines
3.5 KiB
Markdown
129 lines
3.5 KiB
Markdown
# Redaction
|
|
|
|
## Swagger Generated Code
|
|
|
|
To re-generate http rune swagger
|
|
|
|
YOu need swagger-codegen installed `brew install swagger-codegen`
|
|
|
|
```
|
|
BASE=https://adi-dev.iqser.cloud/
|
|
URL="$BASE"redaction-gateway-v1/v2/api-docs?group=redaction-gateway-v1
|
|
mkdir -p /tmp/swagger
|
|
swagger-codegen generate -i "$URL" -l typescript-angular -o /tmp/swagger
|
|
cd /tmp/swagger
|
|
```
|
|
|
|
## 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://timo-redaction-dev.iqser.cloud/`
|
|
Hostname:
|
|
|
|
timo-redaction-dev.iqser.cloud
|
|
|
|
## 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`
|
|
|
|
```
|
|
|
|
---
|
|
global:
|
|
imageRegistry: "nexus.iqser.com:5001"
|
|
|
|
ingress:
|
|
hosts:
|
|
- host: redui-automation-ui.iqser.cloud
|
|
tls:
|
|
- secretName: iqser-cloud-origin
|
|
hosts:
|
|
- redui-automation-ui.iqser.cloud
|
|
|
|
api:
|
|
url: 'https://redui-automation-api.iqser.cloud'
|
|
client: redaction
|
|
oauthUrl: 'https://redkc-staging.iqser.cloud/auth/realms/redaction'
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
---
|
|
global:
|
|
imageRegistry: "nexus.iqser.com:5001"
|
|
|
|
ingress:
|
|
hosts:
|
|
- host: redui-automation-api.iqser.cloud
|
|
tls:
|
|
- secretName: iqser-cloud-origin
|
|
hosts:
|
|
- redui-automation-api.iqser.cloud
|
|
|
|
cassandra:
|
|
dbUser:
|
|
forcePassword: false
|
|
cluster:
|
|
replicaCount: 1
|
|
seedCount: 1
|
|
jvm:
|
|
max_heap_size: 2048M
|
|
heap_new_size: 800M
|
|
persistence:
|
|
enabled: true
|
|
resources:
|
|
requests:
|
|
memory: "4Gi"
|
|
cpu: "0.5"
|
|
|
|
keycloak:
|
|
authServerUrl: 'https://redkc-staging.iqser.cloud/auth'
|
|
client:
|
|
secret: 'a4e8aa56-03b0-4e6b-b822-8ac1f41280c4'
|
|
|
|
configuration_service_v1:
|
|
init:
|
|
dictionaries:
|
|
# https://cloud.iqser.com/index.php/f/879133 (Entities/CleanMergedDictionaries/addresses.txt)
|
|
- type: "address"
|
|
nextcloud_host: "cloud.iqser.com"
|
|
nextcloud_share_id: fTkfkxeGZorpFCL
|
|
nextcloud_share_password: q9g9m34n
|
|
# https://cloud.iqser.com/index.php/f/879133 (Entities/CleanMergedDictionaries/names.txt)
|
|
- type: "name"
|
|
nextcloud_host: "cloud.iqser.com"
|
|
nextcloud_share_id: jaiArBK2DeZG6pJ
|
|
nextcloud_share_password: WPfpQcKG
|
|
# https://cloud.iqser.com/index.php/f/879133 (Entities/CleanMergedDictionaries/vertebrates.txt)
|
|
- type: "vertebrate"
|
|
nextcloud_host: "cloud.iqser.com"
|
|
nextcloud_share_id: F7Nf9cTR3nJbSyb
|
|
nextcloud_share_password: HCATe6TH
|
|
```
|