-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappsettings.json
102 lines (84 loc) · 2.92 KB
/
appsettings.json
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
{
//////////////////////////////////
// ASP.NET Core configurations
//////////////////////////////////
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
//////////////////////////////////
// Database configurations
//////////////////////////////////
"dbtype": "sqlite",
// sqlite -> SQLite
// pg -> PostgreSQL
"dbstr": "data/data.db",
// for SQLite, it's only the filename (i.e., without "Filename=").
// for PostgreSQL, it's the connection string.
// (if undefined: "data/data.db" (sqlite) or error (pg))
//////////////////////////////////
// Frontend & storage location
//////////////////////////////////
"staticdir": "../MusicCloud/dist",
// directory path to static web files
// (if undefined: not serve static files)
"storagedir": "data/storage",
// directory path to store track files
// (if undefined: "data/storage")
//"StorageUrlBase": "",
//////////////////////////////////
// Login configurations
//////////////////////////////////
"AllowRegistration": true,
// Whether to allow registration of new users
"PasswordLogin": true,
// Whether to enable password login
"SocialLogin": {
// Social login methods
// "awesomeprovider": {
// "Name": "(display name)",
// "Icon": "",
// "Type": "oidc",
// "AuthEndpoint": "",
// "TokenEndpoint": "",
// "ClientId": "",
// "ClientSecret": ""
// }
},
//////////////////////////////////
// Comment configurations
//////////////////////////////////
"NotesEnabled": true,
"DiscussionEnabled": true,
"TrackCommentsEnabled": true,
//////////////////////////////////
// Audio transocoding configurations
//////////////////////////////////
"Converters": [
{
"Name": "256k-lc.m4a",
"Format": "aac",
"Bitrate": 256,
"CommandLine": "ffmpeg -loglevel warning -i {0} -f wav - | fdkaac - --moov-before-mdat -p 2 -m 5 -o {1}",
"Auto": true // Start converting when the track is uploaded
},
{
"Name": "128k-lc.m4a",
"Format": "aac",
"Bitrate": 128,
"CommandLine": "ffmpeg -loglevel warning -i {0} -f wav - | fdkaac - --moov-before-mdat -p 2 -m 3 -o {1}"
},
// {
// "Name": "128k.ogg",
// "Format": "ogg",
// "Bitrate": 128,
// "CommandLine": "ffmpeg -i {0} -f wav - | oggenc2 - -o {1}"
// },
],
"passcode": ""
// if it's not empty, the user needs the passcode to access the website.
}