-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
56 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,27 @@ | ||
events { } | ||
|
||
http { | ||
# Upstream Kibana configuration | ||
upstream kbn-ror { | ||
server kbn-ror:5601; | ||
} | ||
|
||
# Server block for handling HTTPS | ||
server { | ||
listen 443 ssl; | ||
|
||
# Path to your SSL certificate and key (these should be valid for your domain) | ||
ssl_certificate /etc/nginx/kibana/kibana.crt; | ||
ssl_certificate_key /etc/nginx/kibana/kibana.key; | ||
upstream kbn-ror { | ||
server kbn-ror:5601; | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
server_name localhost; | ||
|
||
# Optional: Use a stronger set of SSL parameters | ||
ssl_protocols TLSv1.2 TLSv1.3; | ||
ssl_ciphers HIGH:!aNULL:!MD5; | ||
|
||
# Proxy settings to forward to Kibana over HTTPS | ||
location / { | ||
proxy_pass https://kbn-ror; # Note the 'https' | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_ssl_verify off; # Disable SSL verification for internal requests (only if Kibana uses self-signed certs) | ||
} | ||
} | ||
ssl_certificate /etc/nginx/kibana/kibana.crt; | ||
ssl_certificate_key /etc/nginx/kibana/kibana.key; | ||
|
||
# Redirect HTTP requests to HTTPS (optional but recommended) | ||
server { | ||
listen 80; | ||
ssl_protocols TLSv1.2 TLSv1.3; | ||
ssl_ciphers HIGH:!aNULL:!MD5; | ||
|
||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
location / { | ||
proxy_pass https://kbn-ror; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_ssl_verify off; # Disable SSL verification for internal requests (only if Kibana uses self-signed certs) | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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