Add docker image build scripts
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
type Config struct {
|
||||
Server ServerConfig `toml:"server"`
|
||||
Database DatabaseConfig `toml:"database"`
|
||||
Storage StorageConfig `toml:"storage"`
|
||||
Yandex YandexConfig `toml:"yandex"`
|
||||
Telegram TelegramConfig `toml:"telegram"`
|
||||
}
|
||||
@@ -25,6 +26,10 @@ type DatabaseConfig struct {
|
||||
Path string `toml:"path"`
|
||||
}
|
||||
|
||||
type StorageConfig struct {
|
||||
Path string `toml:"path"`
|
||||
}
|
||||
|
||||
type YandexConfig struct {
|
||||
FolderID string `toml:"folder_id"`
|
||||
SpeechKitAPIKey string `toml:"speech_kit_api_key"`
|
||||
@@ -51,6 +56,9 @@ func DefaultConfig() *Config {
|
||||
Database: DatabaseConfig{
|
||||
Path: "data/transcriber.db",
|
||||
},
|
||||
Storage: StorageConfig{
|
||||
Path: "data/files",
|
||||
},
|
||||
Yandex: YandexConfig{
|
||||
FolderID: "",
|
||||
SpeechKitAPIKey: "",
|
||||
|
Reference in New Issue
Block a user