mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 21:32:29 -05:00
nodeinfo compliance (#61)
This commit is contained in:
parent
16e486ad96
commit
c1e107266f
14 changed files with 285 additions and 46 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package config
|
||||
|
||||
const softwareVersion = "0.1.0-SNAPSHOT"
|
||||
|
||||
// TestDefault returns a default config for testing
|
||||
func TestDefault() *Config {
|
||||
defaults := GetTestDefaults()
|
||||
|
|
@ -8,6 +10,7 @@ func TestDefault() *Config {
|
|||
ApplicationName: defaults.ApplicationName,
|
||||
Host: defaults.Host,
|
||||
Protocol: defaults.Protocol,
|
||||
SoftwareVersion: defaults.SoftwareVersion,
|
||||
DBConfig: &DBConfig{
|
||||
Type: defaults.DbType,
|
||||
Address: defaults.DbAddress,
|
||||
|
|
@ -62,6 +65,7 @@ func Default() *Config {
|
|||
ApplicationName: defaults.ApplicationName,
|
||||
Host: defaults.Host,
|
||||
Protocol: defaults.Protocol,
|
||||
SoftwareVersion: defaults.SoftwareVersion,
|
||||
DBConfig: &DBConfig{
|
||||
Type: defaults.DbType,
|
||||
Address: defaults.DbAddress,
|
||||
|
|
@ -117,6 +121,7 @@ func GetDefaults() Defaults {
|
|||
ConfigPath: "",
|
||||
Host: "",
|
||||
Protocol: "https",
|
||||
SoftwareVersion: softwareVersion,
|
||||
|
||||
DbType: "postgres",
|
||||
DbAddress: "localhost",
|
||||
|
|
@ -163,6 +168,7 @@ func GetTestDefaults() Defaults {
|
|||
ConfigPath: "",
|
||||
Host: "localhost:8080",
|
||||
Protocol: "http",
|
||||
SoftwareVersion: softwareVersion,
|
||||
|
||||
DbType: "postgres",
|
||||
DbAddress: "localhost",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue