Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
01b5cac9
Unverified
Commit
01b5cac9
authored
2 years ago
by
G33tha
Committed by
GitHub
2 years ago
Browse files
Options
Download
Patches
Plain Diff
Update values.j2
parent
526c71c0
release-5.2.0-inquiry_RC1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kubernetes/helm_charts/core/nginx-public-ingress/values.j2
+23
-27
kubernetes/helm_charts/core/nginx-public-ingress/values.j2
with
23 additions
and
27 deletions
+23
-27
kubernetes/helm_charts/core/nginx-public-ingress/values.j2
+
23
−
27
View file @
01b5cac9
...
...
@@ -140,8 +140,28 @@ proxyconfig: |-
add_header Content-Type text/plain;
return 200;
}
location ~* ^/assets/public/(.*) {
if ( $arg_eHVyhwSdt ) {
set $custom_header "Bearer $arg_eHVyhwSdt";
}
if ( $http_authorization ) {
set $custom_header "$http_authorization";
}
include /etc/nginx/defaults.d/compression.conf;
proxy_set_header Authorization $custom_header;
rewrite ^/api/(.*) /$1 break;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP {{ nginx_client_public_ip_header | d('$remote_addr') }};
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-For {{ nginx_client_public_ip_header | d('$remote_addr') }};
proxy_connect_timeout 5;
proxy_send_timeout 60;
proxy_read_timeout 70;
proxy_http_version 1.1;
proxy_set_header X-Request-ID $sb_request_id;
proxy_pass http://kong;
}
location ~* ^/assets/public/(.*) {
# Enabling cache for Response code 200
expires 1M;
add_header Pragma public;
...
...
@@ -178,31 +198,7 @@ location ~* ^/assets/public/(.*) {
proxy_set_header X-Request-ID $sb_request_id;
proxy_pass https://$bucket/$url_full;
}
if ( $arg_eHVyhwSdt ) {
set $custom_header "Bearer $arg_eHVyhwSdt";
}
if ( $http_authorization ) {
set $custom_header "$http_authorization";
}
include /etc/nginx/defaults.d/compression.conf;
proxy_set_header Authorization $custom_header;
rewrite ^/api/(.*) /$1 break;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP {{ nginx_client_public_ip_header | d('$remote_addr') }};
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-For {{ nginx_client_public_ip_header | d('$remote_addr') }};
proxy_connect_timeout 5;
proxy_send_timeout 60;
proxy_read_timeout 70;
proxy_http_version 1.1;
proxy_set_header X-Request-ID $sb_request_id;
proxy_pass http://kong;
}
}
}
nginxconfig: |
user nginx;
worker_processes {{nginx_worker_processes | d("auto")}};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets