[英]Config Server in Play framework 2.7
我正在使用Play Framework 2.7實現Web套接字服務器應用程序,我想實現一個遠程配置,其中所有應用程序的配置都應駐留在github中。
當我搜索實現文檔時,我在url下找到了,
https://github.com/play-rconf
但未列出從github訪問配置。 有沒有更好的方法或文檔可以從github訪問配置服務器(如Spring)?
您可以通過指定配置文件的URL來嘗試play-rconf-http :
remote-configuration {
## Provider - HTTP
# ~~~~~
# Retrieves configuration from a simple HTTP server
http {
# URL where is located the configuration file to fetch. You can
# use basic authentication
url = "https://raw.githubusercontent.com/<user>/<repo>/<branch>/<path-to-file>"
url = ${?REMOTECONF_HTTP_URL}
}
}
您也可以使用基本身份驗證。
查找有關從GitHub下載單個文件的信息,以獲取有關GitHub鏈接的更多信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.