Last active
February 13, 2022 13:41
-
-
Save CarlosLannister/a4f9d67ab444ac26c1b0444dee76abec to your computer and use it in GitHub Desktop.
Nginx configuration for kibana guest access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name YOUR_DOMAIN; | |
listen 443 ssl; | |
ssl on; | |
ssl_certificate ROUTE_TO_SSL.cer; | |
ssl_certificate_key ROUTE_TO_SSL.pem; | |
location / { | |
proxy_set_header Host $proxy_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Authorization "Basic Z3Vlc3Q6Z3Vlc3QxMjM0"; # base64-encoded username:password to pass in header | |
proxy_pass IP_KIBANA:PORT; | |
} | |
} | |
server { | |
listen 443 ssl; | |
server_name YOUR_DOMAIN; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment