We use
yamlconfiguration file. It will be created automatically afteranswer initcommand. The default path is/data/conf/config.yaml
config.yaml description
server:http:addr: 0.0.0.0:80 # Project access port numberdata:database:driver: "mysql" # Default database driver is mysqlconnection: root:root@tcp(127.0.0.1:3306)/answer # MySQL database connection addresscache:file_path: "/tmp/cache/cache.db" # Cache file storage pathi18n:bundle_dir: "/data/i18n" # Internationalized file storage directoryswaggerui:show: true # Whether to display the swaggerapi documentation, address /swagger/index.htmlprotocol: http # swagger protocol headerhost: 127.0.0.1 # An accessible IP address or domain nameaddress: ':80' # accessible port numberservice_config:upload_path: "/data/uploads" # upload directory
