File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -671,6 +671,26 @@ location /proxy {
671671> This code ensures that the correct headers are set for the subrequest that is
672672> created.
673673
674+ #### Enabling SSL Verification
675+
676+ By default, nginx's ` proxy_pass ` does not verify SSL certificates. To enable
677+ SSL verification, add the following directives to your ` /proxy ` location:
678+
679+ ``` nginx
680+ location /proxy {
681+ # ... existing configuration ...
682+
683+ proxy_ssl_verify on;
684+ proxy_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
685+ }
686+ ```
687+
688+ The path to the CA certificates file varies by operating system:
689+
690+ * Debian/Ubuntu/Gentoo/Arch Linux: ` /etc/ssl/certs/ca-certificates.crt `
691+ * RHEL/CentOS/Fedora: ` /etc/pki/tls/certs/ca-bundle.crt `
692+ * Alpine: ` /etc/ssl/cert.pem `
693+
674694Additionally, in the nginx ` location ` that processes your Lapis requests, you
675695need to define the ` $_url ` variable, which will hold the request URL.
676696
Original file line number Diff line number Diff line change 2525-- resolver 8.8.8.8;
2626-- proxy_http_version 1.1;
2727-- proxy_pass $_url;
28+ --
29+ -- # Enable SSL certificate verification
30+ -- proxy_ssl_verify on;
31+ -- proxy_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
2832-- }
2933--
3034--
You can’t perform that action at this time.
0 commit comments