fix: backend config
This commit is contained in:
parent
e12dff3455
commit
85a3c3ef10
2 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ func main() {
|
||||||
|
|
||||||
queries := sqlc.New(pool)
|
queries := sqlc.New(pool)
|
||||||
|
|
||||||
rmqConn, err := amqp091.Dial(AppConfig.rmqURL)
|
rmqConn, err := amqp091.Dial(AppConfig.RmqURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to connect to RabbitMQ: %v", err)
|
log.Fatalf("Failed to connect to RabbitMQ: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,5 @@ type Config struct {
|
||||||
DdUrl string `toml:"DbUrl" env:"DATABASE_URL"`
|
DdUrl string `toml:"DbUrl" env:"DATABASE_URL"`
|
||||||
JwtPrivateKey string `toml:"JwtPrivateKey" env:"JWT_PRIVATE_KEY"`
|
JwtPrivateKey string `toml:"JwtPrivateKey" env:"JWT_PRIVATE_KEY"`
|
||||||
LogLevel string `toml:"LogLevel" env:"LOG_LEVEL"`
|
LogLevel string `toml:"LogLevel" env:"LOG_LEVEL"`
|
||||||
rmqURL string `toml:"RabbitMQUrl" env:"RABBITMQ_URL"`
|
RmqURL string `toml:"RabbitMQUrl" env:"RABBITMQ_URL"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue