minor improvements (#3081)

This commit is contained in:
pablodanswer
2024-11-07 10:35:49 -08:00
committed by GitHub
parent 2758ffd9d5
commit 2b1dbde829
3 changed files with 19 additions and 5 deletions

View File

@@ -221,6 +221,10 @@ services:
max-size: "50m" max-size: "50m"
max-file: "6" max-file: "6"
# Uncomment the following lines if you need to include a custom CA certificate # Uncomment the following lines if you need to include a custom CA certificate
# This section enables the use of a custom CA certificate
# If present, the custom CA certificate is mounted as a volume
# The container checks for its existence and updates the system's CA certificates
# This allows for secure communication with services using custom SSL certificates
# Optional volume mount for CA certificate # Optional volume mount for CA certificate
# volumes: # volumes:
# # Maps to the CA_CERT_PATH environment variable in the Dockerfile # # Maps to the CA_CERT_PATH environment variable in the Dockerfile

View File

@@ -65,6 +65,10 @@ services:
max-size: "50m" max-size: "50m"
max-file: "6" max-file: "6"
# Uncomment the following lines if you need to include a custom CA certificate # Uncomment the following lines if you need to include a custom CA certificate
# This section enables the use of a custom CA certificate
# If present, the custom CA certificate is mounted as a volume
# The container checks for its existence and updates the system's CA certificates
# This allows for secure communication with services using custom SSL certificates
# volumes: # volumes:
# # Maps to the CA_CERT_PATH environment variable in the Dockerfile # # Maps to the CA_CERT_PATH environment variable in the Dockerfile
# - ${CA_CERT_PATH:-./custom-ca.crt}:/etc/ssl/certs/custom-ca.crt:ro # - ${CA_CERT_PATH:-./custom-ca.crt}:/etc/ssl/certs/custom-ca.crt:ro

View File

@@ -17,11 +17,13 @@ spec:
image: danswer/danswer-backend:latest image: danswer/danswer-backend:latest
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
command: command:
[ - "/bin/sh"
"/usr/bin/supervisord", - "-c"
"-c", - |
"/etc/supervisor/conf.d/supervisord.conf", if [ -f /etc/ssl/certs/custom-ca.crt ]; then
] update-ca-certificates;
fi &&
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
env: env:
- name: REDIS_PASSWORD - name: REDIS_PASSWORD
valueFrom: valueFrom:
@@ -32,6 +34,10 @@ spec:
- configMapRef: - configMapRef:
name: env-configmap name: env-configmap
# Uncomment the following lines if you need to include a custom CA certificate # Uncomment the following lines if you need to include a custom CA certificate
# This section allows for the inclusion of a custom CA certificate
# If a custom CA certificate is present, it updates the system's CA certificates
# This is useful for environments with self-signed or internal CA certificates
# The certificate is mounted as a volume and the container checks for its presence
# Optional volume mount for CA certificate # Optional volume mount for CA certificate
# volumeMounts: # volumeMounts:
# - name: my-ca-cert-volume # - name: my-ca-cert-volume