HTTPS
It is highly recommended to set up HTTPS for secure communication with the Streav platform.
This guide provides instructions on configuring HTTPS using different methods. Ensure that you have the necessary certificates for your chosen method.
Using .pfx Files
Using .pfx files is a common method for configuring HTTPS. Ensure you have a valid .pfx certificate file and its corresponding password.
services:
streaming:
image: streav/streaming:beta
restart: unless-stopped
ports:
- '8070:5000'
- '8071:5001' # Add HTTPS port binding
depends_on:
- postgres
- rabbitmq
volumes:
- streav-storage:/streav/data
- /home/library:/streav/library
- /path/to/your/certificate/files:/streav/certificates # Add volume for certificate files
environment:
# ... (other environment variables)
- HttpsInlineCertFile__Path=/streav/certificates/your_certificate.pfx
- HttpsInlineCertFile__Password=your_certificate_password
- HttpsOnly=true # Enforces HTTPS-only mode
Using .pem, .crt, and .key Files
If you have .pem, .crt, and .key files, use the following configuration:
services:
streaming:
image: streav/streaming:beta
restart: unless-stopped
ports:
- '8070:5000'
- '8071:5001' # Add HTTPS port binding
depends_on:
- postgres
- rabbitmq
volumes:
- streav-storage:/streav/data
- /home/library:/streav/library
- /path/to/your/certificate/files:/streav/certificates # Add volume for certificate files
environment:
# ... (other environment variables)
- HttpsInlineCertAndKeyFile__Path=/streav/certificates/your_certificate.pem
- HttpsInlineCertAndKeyFile__KeyPath=/streav/certificates/your_private_key.pem
- HttpsInlineCertAndKeyFile__Password=your_certificate_password
- HttpsOnly=true # Enforces HTTPS-only mode
Ensure to replace placeholders like /path/to/your/certificate/files
, your_certificate.pfx
, your_certificate_password
, etc., with the actual paths and values relevant to your certificate files.
After making the necessary adjustments, start the Streav platform using docker compose up -d
. Your Streav platform should now be accessible over HTTPS with enforced HTTPS-only mode.
Table of Contents