Scala 在Play framework 2.7中配置服务器
我正在使用play framework 2.7实现一个web套接字服务器应用程序 我想实现一个远程配置,其中所有应用程序 配置应该驻留在github中 当我搜索文档来实现它时,我发现下面的urlScala 在Play framework 2.7中配置服务器,scala,playframework,configserver,Scala,Playframework,Configserver,我正在使用play framework 2.7实现一个web套接字服务器应用程序 我想实现一个远程配置,其中所有应用程序 配置应该驻留在github中 当我搜索文档来实现它时,我发现下面的url https://github.com/play-rconf 但从github访问配置未列出。 是否有更好的方法或文档从github访问配置服务器(如在春季)?您可以通过指定配置文件的URL来尝试: remote-configuration { ## Provider - HTTP # ~~~
https://github.com/play-rconf
但从github访问配置未列出。
是否有更好的方法或文档从github访问配置服务器(如在春季)?您可以通过指定配置文件的URL来尝试:
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}
}
}
远程配置{
##提供者-HTTP
# ~~~~~
#从简单HTTP服务器检索配置
http{
#URL位于要获取的配置文件的位置。您可以
#使用基本身份验证
url=”https://raw.githubusercontent.com////"
url=${?REMOTECONF_HTTP_url}
}
}
您也可以使用基本身份验证。查找有关GitHub链接的更多信息