Skip to content

Commit

Permalink
config example updated
Browse files Browse the repository at this point in the history
  • Loading branch information
f1mishutka committed Apr 10, 2024
1 parent 06a7e52 commit b8d32ff
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
26 changes: 14 additions & 12 deletions .bot.EXAMPLE.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@

# File created automatically by 'mt-tgadmin init' command. There are all available
# options listed here with its default values. Recommendation is to edit options you
# want to change and remove all others to keep this as simple as possible.
# File was created automatically by 'mt-tgadmin init' command. There are all
# available options listed here with its default values. Recommendation is to edit options you
# want to change and remove all others with default values to keep this as simple as possible.
#
# Created on: 2022-11-11T15:46:52+03:00
# Created on: 2024-04-09T23:25:51+03:00
#

# Production mode
production: true
# Base external site URL (with protocol and port, no trailing slash)
base_url: "https://example.com"

# Webserver port number
webserver_port: 15080
# Secret string to encrypt cookies. Required in Production mode.
webserver_cookie_secret: "Please change this to something unique in production environment"

# Bot authorization token
bot_token: "5745757811:AADOGQhUinxdvNСlXUРSZGВ0vlrd_qхWlR0"
bot_chat_id: -234543

# GUI cookie secret key
gui_cookie_secret_key: "Please change this in production environment"

# GUI access password
gui_password: "mitoteam"
# Web GUI hostname
gui_hostname: "localhost"
# Web GUI port number
gui_port: 15080
2 changes: 1 addition & 1 deletion app/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type AppSettingsType struct {
goappbase.AppSettingsBase `yaml:",inline"`

BotToken string `yaml:"bot_token" yaml_comment:"Bot authorization token"`
BotChatID int64 `yaml:"bot_chat_id" yaml_comment:"'chat_id' int64 value"`
BotChatID int64 `yaml:"bot_chat_id" yaml_comment:"Telegram 'chat_id' int64 value"`

GuiPassword string `yaml:"gui_password" yaml_comment:"GUI access password"`
}
2 changes: 1 addition & 1 deletion goappbase
Submodule goappbase updated 1 files
+8 −2 app.go

0 comments on commit b8d32ff

Please sign in to comment.