-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.env
104 lines (83 loc) · 4.02 KB
/
example.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# The environment setting.
# Use 'development' for local development, and 'production' in production.
ENVIRONMENT=development
# Ports that will be mapped to the host during development.
POSTGRES_DEV_PORT=5432
LLAMACPP_DEV_PORT=8080
WEB_DEV_PORT=8000
# Ports that will be mapped to the host during production.
WEB_HTTP_PORT=80
WEB_HTTPS_PORT=443
# Django debug settings (only used in development).
FORCE_DEBUG_TOOLBAR=true
REMOTE_DEBUGGING_ENABLED=false
REMOTE_DEBUGGING_PORT=5678
# The Django secret key used for cryptographic signing.
# IMPORTANT: Use a unique and secure key in production!
DJANGO_SECRET_KEY="your_django_secret_key_here"
# The Postgres database password (only used in production).
POSTGRES_PASSWORD="your_postgres_password_here"
# Miscellaneous Django security settings.
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
DJANGO_CSRF_TRUSTED_ORIGINS=
DJANGO_INTERNAL_IPS=127.0.0.1
# Redirect all HTTP requests to HTTPS (only used in production).
DJANGO_SECURE_SSL_REDIRECT=true
# The salt that is used for hashing tokens in the token authentication app.
# Cave, changing the salt after some tokens were already generated makes them all invalid!
TOKEN_AUTHENTICATION_SALT="your_token_authentication_salt_here"
# Email configuration.
# The email address that is used for sending emails to the users and critical errors
# to the admins. The smtp server is only used in production. In development the emails
# are just logged to the console.
DJANGO_SERVER_EMAIL="[email protected]"
DJANGO_EMAIL_URL="smtp://localhost:25"
# The Django server admins that will receive critical error notifications.
# Also used by django-registration-redux to send account approval emails to.
DJANGO_ADMIN_EMAIL="[email protected]"
DJANGO_ADMIN_FULL_NAME="RADIS Admin"
# A support Email address that is presented to the users where they can get support.
SUPPORT_EMAIL="[email protected]"
# A superuser that will have access to the Django admin interface.
# Optionally with a provided auth token for the API.
SUPERUSER_USERNAME="superuser"
SUPERUSER_EMAIL="[email protected]"
SUPERUSER_PASSWORD="your_superuser_password_here"
SUPERUSER_AUTH_TOKEN="your_superuser_auth_token_here"
# Location of the backup folder.
BACKUP_DIR="/tmp/backups"
# Site information that is synced to the database and used by the sites framework.
SITE_NAME="RADIS"
SITE_DOMAIN=localhost
# Settings for SSL encryption (only used in production).
# SSL_HOSTNAME and SSL_IP_ADDRESSES are used to generate self-signed certificates
# with 'invoke generate-certificate-files', but you can also provide both files
# on your own.
SSL_HOSTNAME=localhost
SSL_IP_ADDRESSES=127.0.0.1
SSL_SERVER_CERT_FILE="./cert.pem"
SSL_SERVER_KEY_FILE="./key.pem"
SSL_SERVER_CHAIN_FILE="./chain.pem"
# The timezone that the web interface uses.
USER_TIME_ZONE="Europe/Berlin"
# The language of the example reports that will be seeded to the development database.
# Possible values are 'en' or 'de'.
EXAMPLE_REPORTS_LANGUAGE=en
# Should the GPU (if one exists) be used in development for LLM inference
# Only used in development as the GPU is a must in production.
GPU_INFERENCE_ENABLED=false
# The LLM to use for inference.
# Development model:
LLM_MODEL_URL="https://huggingface.co/unsloth/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q4_K_M.gguf" # 105MB
# Production model:
# LLM_MODEL_URL="https://huggingface.co/bartowski/Meta-Llama-3.1-70B-Instruct-GGUF/resolve/main/Meta-Llama-3.1-70B-Instruct-Q4_K_M.gguf" # 42.5GB
# OpenAI API key. Only used to generate example reports for development with 'invoke generate-example-reports'.
OPENAI_API_KEY="your_openai_api_key_here"
# Docker swarm mode does not respect the Docker Proxy client configuration
# (see https://docs.docker.com/network/proxy/#configure-the-docker-client),
# but we can set those environment variables manually.
# Malke sure to use .local in NO_PROXY as otherwise the communication with
# the other services will not work.
# HTTP_PROXY="http://user:[email protected]:8080"
# HTTPS_PROXY="http://user:[email protected]:8080"
# NO_PROXY="localhost,.local"