File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
templates/drydock/k8s/ingress Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 32
32
}
33
33
route @scorm_matcher {
34
34
uri /scorm-proxy/* strip_prefix /scorm-proxy
35
- reverse_proxy https://{{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }} {
36
- header_up Host {{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }}
35
+ reverse_proxy https://{{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }} {
36
+ header_up Host {{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }}
37
37
}
38
38
}
39
39
{% endif %}
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ route @scorm_matcher {
14
14
}
15
15
route @scorm_matcher {
16
16
uri /scorm-proxy/* strip_prefix /scorm-proxy
17
- reverse_proxy https://{{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }} {
18
- header_up Host {{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }}
17
+ reverse_proxy https://{{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }} {
18
+ header_up Host {{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }}
19
19
}
20
20
}
21
21
{% endif %}
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ route @scorm_matcher {
14
14
}
15
15
route @scorm_matcher {
16
16
uri /scorm-proxy/* strip_prefix /scorm-proxy
17
- reverse_proxy https://{{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }} {
18
- header_up Host {{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }}
17
+ reverse_proxy https://{{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }} {
18
+ header_up Host {{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }}
19
19
}
20
20
}
21
21
{% endif %}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ metadata:
14
14
proxy_http_version 1.1;
15
15
proxy_set_header Connection "";
16
16
proxy_set_header Authorization '';
17
- proxy_set_header Host {% if MINIO_HOST is defined %}{{ MINIO_HOST }}{% else %}{{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }}{%- endif %};
17
+ proxy_set_header Host {% if MINIO_HOST is defined %}{{ MINIO_HOST }}{% else %}{{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }}{%- endif %};
18
18
proxy_hide_header x-amz-id-2;
19
19
proxy_hide_header x-amz-request-id;
20
20
proxy_hide_header x-amz-meta-server-side-encryption;
@@ -24,7 +24,7 @@ metadata:
24
24
proxy_intercept_errors on;
25
25
add_header Cache-Control max-age=31536000;
26
26
rewrite /scorm-proxy(.*) $1 break;
27
- proxy_pass https://{%- if MINIO_HOST is defined %}{{ MINIO_HOST }}{% else %}{{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }}{%- endif %};
27
+ proxy_pass https://{%- if MINIO_HOST is defined %}{{ MINIO_HOST }}{% else %}{{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }}{%- endif %};
28
28
}
29
29
{%- endif %}
30
30
spec :
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ metadata:
14
14
proxy_http_version 1.1;
15
15
proxy_set_header Connection "";
16
16
proxy_set_header Authorization '';
17
- proxy_set_header Host {% if MINIO_HOST is defined %}{{ MINIO_HOST }}{% else %}{{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }}{%- endif %};
17
+ proxy_set_header Host {% if MINIO_HOST is defined %}{{ MINIO_HOST }}{% else %}{{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }}{%- endif %};
18
18
proxy_hide_header x-amz-id-2;
19
19
proxy_hide_header x-amz-request-id;
20
20
proxy_hide_header x-amz-meta-server-side-encryption;
@@ -24,7 +24,7 @@ metadata:
24
24
proxy_intercept_errors on;
25
25
add_header Cache-Control max-age=31536000;
26
26
rewrite /scorm-proxy(.*) $1 break;
27
- proxy_pass https://{%- if MINIO_HOST is defined %}{{ MINIO_HOST }}{% else %}{{ S3_STORAGE_BUCKET }}.{{ S3_HOST|default( 's3.amazonaws.com', true) }}{%- endif %};
27
+ proxy_pass https://{%- if MINIO_HOST is defined %}{{ MINIO_HOST }}{% else %}{{ S3_STORAGE_BUCKET }}.{{ S3_HOST or 's3.amazonaws.com' }}{%- endif %};
28
28
}
29
29
{%- endif %}
30
30
spec :
You can’t perform that action at this time.
0 commit comments