fix(install): update proper s3 endpoint for assets/http/utilities (#247)

This commit is contained in:
Rajesh Rajendran 2021-12-08 18:17:15 +00:00 committed by Rajesh Rajendran
parent 01c533baa3
commit d1a20592cc
3 changed files with 16 additions and 0 deletions

View file

@ -13,6 +13,11 @@ env:
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
# In case of minio, the instance is running inside kuberntes,
# which is accessible via nginx ingress.
{% if s3_endpoint != "http://minio.db.svc.cluster.local:9000" %}
ASSETS_ORIGIN: "https://{{assets_bucket}}.{{ s3_endpoint.split('https://')[-1] }}"
{% endif %}
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -12,6 +12,11 @@ env:
REDIS_STRING: "{{ redis_endpoint }}"
KAFKA_SERVERS: "{{ kafka_endpoint }}"
KAFKA_USE_SSL: "{{ kafka_ssl }}"
# In case of minio, the instance is running inside kuberntes,
# which is accessible via nginx ingress.
{% if s3_endpoint != "http://minio.db.svc.cluster.local:9000" %}
ASSETS_ORIGIN: "https://{{assets_bucket}}.{{ s3_endpoint.split('https://')[-1] }}"
{% endif %}
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
imagePullSecrets: []

View file

@ -10,7 +10,13 @@ imagePullSecrets: []
env:
S3_KEY: "{{ minio_access_key }}"
S3_SECRET: "{{ minio_secret_key }}"
# In case of minio, the instance is running inside kuberntes,
# which is accessible via nginx ingress.
{% if s3_endpoint == "http://minio.db.svc.cluster.local:9000" %}
S3_HOST: "https://{{ domain_name }}"
{% else %}
S3_HOST: "{{ s3_endpoint }}"
{% endif %}
jwt_secret: "{{ jwt_secret_key }}"
AWS_DEFAULT_REGION: "{{ aws_region }}"
{% if env is defined and env.chalice is defined and env.chalice%}