summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/appsettings.json
blob: 03ca31ed862e84f94454cdef20eaa6643c33011c (plain)
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
/*


  This contains the default settings for the web app. Login credentials and contextual settings are
  configured via appsettings.Development.json locally, or environment properties in AWS.


*/
{
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "Context": {
    "RootUrl": null, // see top note 
    "LogParserUrl": null // see top note
  },
  "ApiClients": {
    "UserAgent": "SMAPI/{0} (+https://smapi.io)",

    "ChucklefishBaseUrl": "https://community.playstarbound.com",
    "ChucklefishModPageUrlFormat": "resources/{0}",

    "GitHubBaseUrl": "https://api.github.com",
    "GitHubStableReleaseUrlFormat": "repos/{0}/releases/latest",
    "GitHubAnyReleaseUrlFormat": "repos/{0}/releases?per_page=1",
    "GitHubAcceptHeader": "application/vnd.github.v3+json",
    "GitHubUsername": null, // see top note
    "GitHubPassword": null, // see top note

    "NexusUserAgent": "Nexus Client v0.63.15",
    "NexusBaseUrl": "http://www.nexusmods.com/stardewvalley",
    "NexusModUrlFormat": "mods/{0}",

    "PastebinBaseUrl": "https://pastebin.com/",
    "PastebinUserKey": null, // see top note
    "PastebinDevKey": null // see top note
  },

  "ModUpdateCheck": {
    "SuccessCacheMinutes": 60,
    "ErrorCacheMinutes": 5,
    "SemanticVersionRegex": "^(?>(?<major>0|[1-9]\\d*))\\.(?>(?<minor>0|[1-9]\\d*))(?>(?:\\.(?<patch>0|[1-9]\\d*))?)(?:-(?<prerelease>(?>[a-z0-9]+[\\-\\.]?)+))?$",

    "ChucklefishKey": "Chucklefish",
    "GitHubKey": "GitHub",
    "NexusKey": "Nexus"
  }
}