-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathngnix_config
42 lines (33 loc) · 1.45 KB
/
ngnix_config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
server {
listen 443;
server_name $host;
rewrite ^/$ https://$host/_dashboards redirect;
ssl_certificate /etc/nginx/self_signed_certificate.crt;
ssl_certificate_key /etc/nginx/public.key;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
location ^~ /_dashboards {
# Forward requests to Dashboards
# proxy_pass https://vpc-workshop-domain-vpc-sanhsxgdhgmlm3ipovjzmbivse.us-east-1.es.amazonaws.com/_dashboards;
proxy_pass https://<os_domain_url>/_dashboards;
# Update cookie domain and path
# proxy_cookie_domain vpc-workshop-domain-vpc-sanhsxgdhgmlm3ipovjzmbivse.us-east-1.es.amazonaws.com $host;
proxy_cookie_domain <os_domain_url> $host;
proxy_set_header Accept-Encoding "";
sub_filter_types *;
sub_filter DOMAIN_ENDPOINT $host;
sub_filter_once off;
# Response buffer settings
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
location ~ \/(log|sign|fav|forgot|change|saml|oauth2) {
# Handle redirects to Dashboards
# proxy_redirect https://vpc-workshop-domain-vpc-sanhsxgdhgmlm3ipovjzmbivse.us-east-1.es.amazonaws.com https://$host;
proxy_redirect https://<os_domain_url> https://$host;
}
}