-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
47 lines (35 loc) · 1.5 KB
/
.env.example
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
# External files
NEXT_PUBLIC_MUSIC_LIBRARY_FOLDER="$HOME/Music"
# Code config
NEXT_PUBLIC_UPLOAD_CHUNK_SIZE=10 # 1MB
# host
NEXT_PUBLIC_INTERNET_HOST=https://my-domain.com
NEXT_PUBLIC_INTRANET_HOST=https://local.my-domain.com # [optional] should resolve to internal server IP, like 192.168.0.5
# websocket
NEXT_PUBLIC_WEBSOCKET_URL=wss://my-domain.com
WEBSOCKET_SERVER_PORT=8081 # port used server-side, behind the reverse-proxy
# API config
DAYS_BETWEEN_REFETCH=7
# Last.fm (https://www.last.fm/api/accounts)
LAST_FM_API_KEY=
# AudioDB (https://www.theaudiodb.com), not free anymore
AUDIO_DB_API_KEY=
# Spotify (https://developer.spotify.com/documentation/web-api/reference/#/operations/search)
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
# Twitch (for auth only)
TWITCH_CLIENT_ID=
TWITCH_CLIENT_SECRET=
# AccoustId (https://www.accoustid.org/webservice) / MusicBrainz (https://musicbrainz.org/doc/Development)
ACOUST_ID_API_KEY=
# MusicBrainz
MUSIC_BRAINZ_USER_AGENT=Soft Serve Tunes/0.1.0 ( [email protected] )
# Prisma
DATABASE_URL=file:./db.sqlite
# DATABASE_URL=postgresql://user:password@localhost:5432/databasename # prisma will create a database with this name
# for postgresql it's useful to increase connection limit and timeout ?connection_limit=20&pool_timeout=20
# for postgresql it's useful to disable ssl ?sslmode=disable if it's on the same server and not exposed to the internet
# Next Auth
NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
ALLOWED_USERS="spotify:[email protected], twitch:[email protected]"