mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
feat: dynamically set swagger host, and some ui improvements on ssh page
This commit is contained in:
11
main.go
11
main.go
@@ -1,6 +1,12 @@
|
||||
package main
|
||||
|
||||
import "github.com/glueops/autoglue/cmd"
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/glueops/autoglue/cmd"
|
||||
"github.com/glueops/autoglue/docs"
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
// @title AutoGlue API
|
||||
// @version 1.0
|
||||
@@ -10,7 +16,6 @@ import "github.com/glueops/autoglue/cmd"
|
||||
|
||||
// @BasePath /api/v1
|
||||
// @schemes http https
|
||||
// @host localhost:8080
|
||||
|
||||
// @securityDefinitions.apikey BearerAuth
|
||||
// @in header
|
||||
@@ -33,5 +38,7 @@ import "github.com/glueops/autoglue/cmd"
|
||||
// @description Org-level secret
|
||||
|
||||
func main() {
|
||||
_ = godotenv.Load()
|
||||
docs.SwaggerInfo.Host = os.Getenv("SWAGGER_HOST")
|
||||
cmd.Execute()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user