Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
67 lines (58 loc) · 2.5 KB
/
Copy path.env.example
File metadata and controls
67 lines (58 loc) · 2.5 KB
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
# FlowyML Local Development Environment Variables
# ================================================
# Copy this file to .env and modify as needed
#
# WARNING: Never commit .env to version control!
# ================================================
# -----------------------------------------------------------------------------
# Database Configuration
# -----------------------------------------------------------------------------
POSTGRES_USER=flowyml
POSTGRES_PASSWORD=flowyml_secure_password
POSTGRES_DB=flowyml
FLOWYML_DATABASE_URL=postgresql://flowyml:flowyml_secure_password@postgres:5432/flowyml
# -----------------------------------------------------------------------------
# FlowyML Backend Configuration
# -----------------------------------------------------------------------------
FLOWYML_ENV=development
FLOWYML_PORT=8080
FLOWYML_REMOTE_SERVER_URL=http://localhost:8080
FLOWYML_REMOTE_UI_URL=http://localhost:80
# Authentication
#
# FLOWYML_ENV=production makes the server fail closed: it refuses to start
# unless FLOWYML_API_TOKEN and FLOWYML_ADMIN_PASSWORD are both set to real
# values. That is deliberate - POST /api/execution/execute imports and runs
# arbitrary Python modules, so an unauthenticated instance is remote code
# execution, and an empty FLOWYML_API_TOKEN used to disable authentication
# silently.
#
# Generate a token with: python -c "import secrets; print(secrets.token_urlsafe(32))"
FLOWYML_AUTH_SECRET=change-this-secret-in-production
FLOWYML_API_TOKEN=
FLOWYML_ADMIN_USER=admin
FLOWYML_ADMIN_PASSWORD=
# Set to 1 only when authentication is enforced by a proxy in front of FlowyML.
# This disables the built-in checks; do not set it otherwise.
FLOWYML_ALLOW_INSECURE=
# Comma-separated browser origins allowed to call the API. Defaults to the
# usual localhost dev ports in development. A wildcard is never used: combined
# with credentials it would let any website read this API.
FLOWYML_CORS_ORIGINS=
# Logging
LOG_LEVEL=INFO
# -----------------------------------------------------------------------------
# FlowyML Frontend Configuration
# -----------------------------------------------------------------------------
FLOWYML_UI_PORT=80
VITE_API_URL=http://localhost:8080
# -----------------------------------------------------------------------------
# Observability Stack
# -----------------------------------------------------------------------------
# Prometheus
PROMETHEUS_PORT=9090
# Grafana
GRAFANA_PORT=3001
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=admin
GRAFANA_ROOT_URL=http://localhost:3001