Service

更改本地主機設置

  • August 12, 2022

我按照這篇博文中提到的步驟..

https://aws.amazon.com/blogs/opensource/dashboards-as-code-a-new-approach-to-visualizing-aws-apis/

並能夠啟動服務。

$ steampipe dashboard
[ Wait    ] Loading Workspace
[ Wait    ] Starting Dashboard Server
[ Message ] Workspace loaded
[ Message ] Initialization complete
[ Ready   ] Dashboard server started on 9194 and listening on local
[ Message ] Visit http://localhost:9194
[ Message ] Press Ctrl+C to exit

但我需要將它託管在 some-company.com:9194 而不是 localhost 上。那可能嗎?

在目錄中~/.steampipe/config找到database並編輯聽網路

options "database" {
 port   = 9193                     # any valid, open port number
 listen = "network"                  # local, network
 search_path = "aws,aws2,gcp,gcp2" # comma-separated string; an exact search_path
}

引用自:https://serverfault.com/questions/1108006