kopia lustrzana https://codeberg.org/nmkj/audon
fix .env
rodzic
66564d14a3
commit
4b008a01d2
|
@ -1,12 +0,0 @@
|
|||
LOCAL_DOMAIN="audon.example.com"
|
||||
DB_HOST="db:27017"
|
||||
DB_NAME="audon"
|
||||
DB_USER="mongo"
|
||||
DB_PASS="mongo"
|
||||
REDIS_HOST="redis:6379"
|
||||
REDIS_USER=""
|
||||
REDIS_PASS=""
|
||||
LIVEKIT_API_KEY="devkey"
|
||||
LIVEKIT_API_SECRET="secret"
|
||||
LIVEKIT_HOST="livekit.example.com"
|
||||
LIVEKIT_LOCAL_DOMAIN="livekit.example.com"
|
|
@ -0,0 +1,12 @@
|
|||
LOCAL_DOMAIN=audon.example.com
|
||||
DB_HOST=db:27017
|
||||
DB_NAME=audon
|
||||
DB_USER=mongo
|
||||
DB_PASS=mongo
|
||||
REDIS_HOST=redis:6379
|
||||
REDIS_USER=
|
||||
REDIS_PASS=
|
||||
LIVEKIT_API_KEY=devkey
|
||||
LIVEKIT_API_SECRET=secret
|
||||
LIVEKIT_HOST=livekit.example.com
|
||||
LIVEKIT_LOCAL_DOMAIN=livekit.example.com
|
|
@ -103,7 +103,6 @@ web_modules/
|
|||
.env.production.local
|
||||
.env.local
|
||||
.env.production
|
||||
!.env.*.example
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
@ -185,4 +184,4 @@ dist
|
|||
### Audon ###
|
||||
# Ignore all config files
|
||||
config/*
|
||||
!config/*-example.*
|
||||
!config/*.sample.*
|
||||
|
|
|
@ -58,10 +58,10 @@ func main() {
|
|||
log.Println("Audon server started.")
|
||||
|
||||
// Load config from environment variables and .env
|
||||
log.Println("Reading .env files")
|
||||
log.Println("Loading Audon config values")
|
||||
mainConfig, err = loadConfig(os.Getenv("AUDON_ENV"))
|
||||
if err != nil {
|
||||
log.Fatalf("Failed reading .env files: %s\n", err.Error())
|
||||
log.Fatalf("Failed loading config values: %s\n", err.Error())
|
||||
}
|
||||
|
||||
// Setup Livekit RoomService Client
|
||||
|
|
Ładowanie…
Reference in New Issue