mirror of
https://github.com/Expand-sys/awx-on-k3s
synced 2025-12-16 14:02:15 +11:00
Merge pull request #283 from kurokobo/galaxy
fix: add settings to avoid cors error
This commit is contained in:
commit
0b19c41190
2 changed files with 8 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ GALAXY_HOST="galaxy.example.com"
|
||||||
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -out ./pulp/tls.crt -keyout ./pulp/tls.key -subj "/CN=${GALAXY_HOST}/O=${GALAXY_HOST}" -addext "subjectAltName = DNS:${GALAXY_HOST}"
|
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -out ./pulp/tls.crt -keyout ./pulp/tls.key -subj "/CN=${GALAXY_HOST}/O=${GALAXY_HOST}" -addext "subjectAltName = DNS:${GALAXY_HOST}"
|
||||||
```
|
```
|
||||||
|
|
||||||
Modify `ingress_host` in `pulp/galaxy.yaml`.
|
Modify `ingress_host` and `CSRF_TRUSTED_ORIGINS` in `pulp/galaxy.yaml`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
...
|
...
|
||||||
|
|
@ -254,6 +254,11 @@ spec:
|
||||||
ingress_class_name: traefik
|
ingress_class_name: traefik
|
||||||
ingress_tls_secret: galaxy-secret-tls
|
ingress_tls_secret: galaxy-secret-tls
|
||||||
ingress_host: galaxy.example.com 👈👈👈
|
ingress_host: galaxy.example.com 👈👈👈
|
||||||
|
...
|
||||||
|
pulp_settings:
|
||||||
|
...
|
||||||
|
CSRF_TRUSTED_ORIGINS:
|
||||||
|
- https://galaxy.example.com 👈👈👈
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ spec:
|
||||||
pulp_settings:
|
pulp_settings:
|
||||||
TOKEN_AUTH_DISABLED: "True"
|
TOKEN_AUTH_DISABLED: "True"
|
||||||
GALAXY_FEATURE_FLAGS__ai_deny_index: "True"
|
GALAXY_FEATURE_FLAGS__ai_deny_index: "True"
|
||||||
|
CSRF_TRUSTED_ORIGINS:
|
||||||
|
- https://galaxy.example.com
|
||||||
|
|
||||||
api:
|
api:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue