Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
73 lines (60 loc) · 2.22 KB
/
Copy path.env.example
File metadata and controls
73 lines (60 loc) · 2.22 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
68
69
70
71
72
73
# Domain
# This would be set to the production domain with an env var on deployment
DOMAIN=localhost
# Environment: local, staging, production
ENVIRONMENT=local
PROJECT_NAME="NetConsole"
STACK_NAME=netconsole
# Backend
BACKEND_CORS_ORIGINS="http://localhost,http://localhost:5173,https://localhost,https://localhost:5173,http://localhost.tiangolo.com"
SECRET_KEY=changethis
FIRST_SUPERUSER=admin@example.com
FIRST_SUPERUSER_PASSWORD=changethis
USERS_OPEN_REGISTRATION=False
# Emails
SMTP_HOST=
SMTP_USER=
SMTP_PASSWORD=
EMAILS_FROM_EMAIL=info@example.com
SMTP_TLS=True
SMTP_SSL=False
SMTP_PORT=587
# Postgres
POSTGRES_SERVER=localhost
POSTGRES_PORT=5432
POSTGRES_DB=app
POSTGRES_USER=postgres
POSTGRES_PASSWORD=changethis
SENTRY_DSN=
# Timezone (IANA format, e.g. Asia/Ho_Chi_Minh, America/New_York, UTC)
# See full list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIMEZONE=UTC
# Configure these with your own Docker registry images
DOCKER_IMAGE_BACKEND=backend
DOCKER_IMAGE_FRONTEND=frontend
# Default Credentials to login network devices
NETWORK_USERNAME = "netconsole"
NETWORK_PASSWORD = "xxx"
# Fernet key for encrypting stored device credentials
# Generate with: python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
CREDENTIAL_ENCRYPTION_KEY=changethis
# OAuth2 / Social Login (leave blank to disable that provider's button)
# Register Callback URLs (Redirect URIs) on providers:
# - Google: http://localhost/api/v1/auth/google/callback (or https://{DOMAIN}/api/v1/auth/google/callback)
# - Microsoft: http://localhost/api/v1/auth/microsoft/callback (or https://{DOMAIN}/api/v1/auth/microsoft/callback)
# - Keycloak: http://localhost/api/v1/auth/keycloak/callback (or https://{DOMAIN}/api/v1/auth/keycloak/callback)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
MICROSOFT_CLIENT_ID=
MICROSOFT_CLIENT_SECRET=
MICROSOFT_TENANT_ID=common
KEYCLOAK_CLIENT_ID=
KEYCLOAK_CLIENT_SECRET=
KEYCLOAK_SERVER_URL=https://keycloak.example.com
KEYCLOAK_REALM=netconsole
# WebAuthn / Passkey
# WEBAUTHN_RP_ID must match the domain your frontend is served from (no scheme, no port)
WEBAUTHN_RP_ID=localhost
WEBAUTHN_RP_NAME=NetConsole
# Full origin including scheme and port for development
WEBAUTHN_ORIGIN=http://localhost