spring cloud config 配置自建git服务器
2016-08-23 19:24
861 查看
application.yml
git.properties
git服务器 /etc/ssh/sshd_config配置
<pre name="code" class="html">#添加算法
KexAlgorithms diffie-hellman-group1-sha1
KexAlgorithms diffie-hellman-group-exchange-sha1
#只保留rsa key
HostKey /etc/ssh/ssh_host_rsa_key
#开启证书登陆(参考ssh证书登陆)
RSAAuthentication yes
PubkeyAuthentication yes
客户端手动登陆一次,产生~/.ssh/known_hosts文件
使用git账户启动spring cloud config 服务器进程。
server: port: 8888 management: context-path: /admin logging: level: com.netflix.discovery: 'OFF' org.springframework.cloud: 'DEBUG' eureka: instance: leaseRenewalIntervalInSeconds: 10 statusPageUrlPath: /admin/info healthCheckUrlPath: /admin/health hostname: ${CF_INSTANCE_IP:localhost} nonSecurePort: ${CF_INSTANCE_PORT:${PORT:${server.port:8888}}} client: serviceUrl: defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/ spring: cloud: config: server: overrides: eureka: client: serviceUrl: defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/ instance: hostname: $\{CF_INSTANCE_IP:localhost} nonSecurePort: $\{CF_INSTANCE_PORT:$\{PORT:$\{server.port:8080}}} git: uri: <span style="color:#FF0000;">git@127.0.0.1:sample.git</span> basedir: target/config
git.properties
git.commit.id.abbrev=92f2e9 git.commit.id=92f2e9e03a9409505ed770276e3f221162ce6633 git.commit.user.name=git git.build.user.name=git git.commit.id.describe=92f2e9 git.branch=master git.remote.origin.url=git@127.0.0.1:sample.git
git服务器 /etc/ssh/sshd_config配置
<pre name="code" class="html">#添加算法
KexAlgorithms diffie-hellman-group1-sha1
KexAlgorithms diffie-hellman-group-exchange-sha1
#只保留rsa key
HostKey /etc/ssh/ssh_host_rsa_key
#开启证书登陆(参考ssh证书登陆)
RSAAuthentication yes
PubkeyAuthentication yes
客户端手动登陆一次,产生~/.ssh/known_hosts文件
使用git账户启动spring cloud config 服务器进程。
相关文章推荐
- spring cloud config 配置自建git服务器报错解决
- 为Spring Cloud Config Server配置远程git仓库
- 详解Spring Cloud Config采用Git存储时两种常用的配置策略
- 为Spring Cloud Config Server配置远程git仓库
- J360-cloud SpringCloud系列一:分布式配置服务器ConfigServer
- Spring Cloud Config采用Git存储时两种常用的配置策略
- (Spring Cloud微服务实战-书中之坑)spring cloud config优先读取本地配置,其次读取git仓库
- 学习微服务的统一配置管理-springCloud config+git
- 史上最简单的SpringCloud教程 | 第六篇: 分布式配置中心(Spring Cloud Config)
- Spring Cloud Config集中式配置管理使用
- 史上最简单的SpringCloud教程 | 第七篇: 高可用的分布式配置中心(Spring Cloud Config)
- spring cloud config-server 高可用配置中心
- Spring cloud笔记 - config 外部配置
- spring cloud config整合gitlab搭建分布式的配置中心
- springcloud(六):配置中心git示例
- 史上最简单的SpringCloud教程 | 第六篇: 分布式配置中心(Spring Cloud Config)
- spring cloud config 配置svn 实例
- Spring Cloud入门2——配置中心Config
- **Spring cloud config 配置本地属性供其它客户端使用
- spring基础:快速入门spring cloud(6):统一配置管理之spring cloud config