()
| 58 | } |
| 59 | |
| 60 | func configFiles() []string { |
| 61 | if mode.Get() == mode.TestDev { |
| 62 | return []string{"config.yml"} |
| 63 | } |
| 64 | return []string{"config.yml", "/etc/gotify/config.yml"} |
| 65 | } |
| 66 | |
| 67 | // Get returns the configuration extracted from env variables or config file. |
| 68 | func Get() *Configuration { |