Caddy is a powerful, automated, and easy-to-use reverse proxy server. It provides automatic HTTPS, flexible configuration, and high performance.
This Helm chart deploys two Caddy-based reverse proxy services:
app-rp-service: Routes traffic forapp.qualifire.aiproxy-rp-service: Routes traffic forproxy.qualifire.ai
# Adding the helm repo
helm repo add qualifire https://qualifire-dev.github.io/qualifire-rp-helm/
helm repo update
# Installing
helm install qualifire-reverse-proxy qualifire/qualifire-reverse-proxy-chart
# Installing with values overridden
helm install qualifire-reverse-proxy qualifire/qualifire-reverse-proxy-chart \
--set proxy.reverse_proxy_hostname=qualifire-proxy.mycompany.com \
--set app.reverse_proxy_hostname=qualifire-app.mycompany.com
# or, using a values file
helm install qualifire-reverse-proxy qualifire/qualifire-reverse-proxy-chart \
-f my-values.yamlhelm upgrade qualifire-reverse-proxy qualifire/qualifire-reverse-proxy-charthelm uninstall qualifire-reverse-proxyThe values.yaml is pretty straight forward.
However, there are still a few configuration keys that you should take a look at:
| Key | Description |
|---|---|
proxy.reverse_proxy_hostname |
Client-facing hostname for the proxy service (e.g., qualifire-proxy.mycompany.com). |
app.reverse_proxy_hostname |
Client-facing hostname for the app service (e.g., qualifire-app.mycompany.com). |
Create your own values.yaml with your needed configuration, and install using the -f my-values.yaml
Caddy automatically provisions an HTTPS certificate, as stated in their documentation.
However, for local networks, the certificate used will be a self-signed certificate.
If this is the case for you, you might need to add a verify=False when invoking a request to your local proxy.qualifire.ai
For example, in OpenAI:
import httpx
from openai import OpenAI
client = OpenAI(
api_key="your api key",
base_url="https://qualifire-proxy.mycompany.local/api/providers/openai/",
http_client=httpx.Client(verify=False),
)