Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
44a2e143
Commit
44a2e143
authored
Mar 24, 2016
by
Yiming Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update default port
parent
9841c500
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
90 additions
and
34 deletions
+90
-34
application.yml
apollo-adminservice/src/main/resources/application.yml
+2
-2
bootstrap.yml
apollo-adminservice/src/main/resources/bootstrap.yml
+2
-1
application.properties
apollo-biz/src/main/resources/application.properties
+3
-2
pom.xml
apollo-configservice/pom.xml
+48
-14
ServerApplication.java
...ice/src/main/java/com/ctrip/apollo/ServerApplication.java
+6
-3
application.yml
apollo-configservice/src/main/resources/application.yml
+3
-2
bootstrap.yml
apollo-configservice/src/main/resources/bootstrap.yml
+3
-1
MetaDomainConsts.java
...src/main/java/com/ctrip/apollo/core/MetaDomainConsts.java
+16
-8
application.yml
apollo-portal/src/main/resources/application.yml
+7
-1
No files found.
apollo-adminservice/src/main/resources/application.yml
View file @
44a2e143
...
@@ -3,12 +3,12 @@ spring:
...
@@ -3,12 +3,12 @@ spring:
name
:
apollo-adminservice
name
:
apollo-adminservice
server
:
server
:
port
:
${port:
23646
}
port
:
${port:
8090
}
logging
:
logging
:
level
:
level
:
org.springframework.cloud
:
'
DEBUG'
org.springframework.cloud
:
'
DEBUG'
file
:
/opt/logs/apollo-adminservice.log
file
:
/opt/logs/
${ctrip.appid}/
apollo-adminservice.log
ctrip
:
ctrip
:
appid
:
100003172
appid
:
100003172
apollo-adminservice/src/main/resources/bootstrap.yml
View file @
44a2e143
...
@@ -3,6 +3,6 @@ eureka:
...
@@ -3,6 +3,6 @@ eureka:
hostname
:
${hostname:localhost}
hostname
:
${hostname:localhost}
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://${eureka.instance.hostname}/eureka/
defaultZone
:
http://${eureka.instance.hostname}
:8080
/eureka/
healthcheck
:
healthcheck
:
enabled
:
true
enabled
:
true
\ No newline at end of file
apollo-biz/src/main/resources/application.properties
View file @
44a2e143
...
@@ -2,4 +2,5 @@ spring.datasource.url = jdbc:h2:mem:~/fxapolloconfigdb;mode=mysql
...
@@ -2,4 +2,5 @@ spring.datasource.url = jdbc:h2:mem:~/fxapolloconfigdb;mode=mysql
spring.datasource.username
=
sa
spring.datasource.username
=
sa
spring.datasource.password
=
spring.datasource.password
=
spring.jpa.hibernate.naming_strategy
=
org.hibernate.cfg.EJB3NamingStrategy
spring.jpa.hibernate.naming_strategy
=
org.hibernate.cfg.EJB3NamingStrategy
spring.h2.console.enabled
=
true
spring.h2.console.enabled
=
true
\ No newline at end of file
spring.h2.console.settings.web-allow-others
=
true
\ No newline at end of file
apollo-configservice/pom.xml
View file @
44a2e143
...
@@ -11,34 +11,68 @@
...
@@ -11,34 +11,68 @@
<artifactId>
apollo-configservice
</artifactId>
<artifactId>
apollo-configservice
</artifactId>
<name>
Apollo ConfigService
</name>
<name>
Apollo ConfigService
</name>
<dependencies>
<dependencies>
<!-- apollo -->
<!-- apollo -->
<dependency>
<dependency>
<groupId>
com.ctrip.apollo
</groupId>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-biz
</artifactId>
<artifactId>
apollo-biz
</artifactId>
</dependency>
</dependency>
<!-- end of apollo -->
<!-- end of apollo -->
<!-- redis -->
<!-- redis -->
<dependency>
<!-- <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId>
<groupId>
org.springframework.data
</groupId>
</dependency> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId>
<artifactId>
spring-data-redis
</artifactId>
</dependency> -->
</dependency>
<!-- end of redis -->
<dependency>
<!-- eureka -->
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
</dependency>
<!-- end of redis -->
<!-- eureka -->
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-eureka-server
</artifactId>
<artifactId>
spring-cloud-starter-eureka-server
</artifactId>
<exclusions>
<exclusion>
<artifactId>
spring-cloud-starter-archaius
</artifactId>
<groupId>
org.springframework.cloud
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-cloud-starter-ribbon
</artifactId>
<groupId>
org.springframework.cloud
</groupId>
</exclusion>
<exclusion>
<artifactId>
ribbon-eureka
</artifactId>
<groupId>
com.netflix.ribbon
</groupId>
</exclusion>
<exclusion>
<artifactId>
aws-java-sdk-core
</artifactId>
<groupId>
com.amazonaws
</groupId>
</exclusion>
<exclusion>
<artifactId>
aws-java-sdk-ec2
</artifactId>
<groupId>
com.amazonaws
</groupId>
</exclusion>
<exclusion>
<artifactId>
aws-java-sdk-autoscaling
</artifactId>
<groupId>
com.amazonaws
</groupId>
</exclusion>
<exclusion>
<artifactId>
aws-java-sdk-sts
</artifactId>
<groupId>
com.amazonaws
</groupId>
</exclusion>
<exclusion>
<artifactId>
aws-java-sdk-route53
</artifactId>
<groupId>
com.amazonaws
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
<!-- end of eureka -->
<!-- end of eureka -->
</dependencies>
</dependencies>
<build>
<build>
<plugins>
<plugins>
<plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<executable>
true
</executable>
</configuration>
</plugin>
</plugin>
</plugins>
</plugins>
</build>
</build>
...
...
apollo-configservice/src/main/java/com/ctrip/apollo/ServerApplication.java
View file @
44a2e143
...
@@ -7,13 +7,16 @@ import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
...
@@ -7,13 +7,16 @@ import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
/**
/**
* Spring boot application entry point
* Spring boot application entry point
*
* @author Jason Song(song_s@ctrip.com)
* @author Jason Song(song_s@ctrip.com)
*/
*/
@SpringBootApplication
@SpringBootApplication
@EnableEurekaServer
@EnableEurekaServer
@EnableEurekaClient
@EnableEurekaClient
public
class
ServerApplication
{
public
class
ServerApplication
{
public
static
void
main
(
String
[]
args
)
{
new
SpringApplicationBuilder
(
ServerApplication
.
class
).
web
(
true
).
run
(
args
);
public
static
void
main
(
String
[]
args
)
{
}
new
SpringApplicationBuilder
(
ServerApplication
.
class
).
web
(
true
).
run
(
args
);
}
}
}
apollo-configservice/src/main/resources/application.yml
View file @
44a2e143
...
@@ -3,12 +3,12 @@ spring:
...
@@ -3,12 +3,12 @@ spring:
name
:
apollo-configservice
name
:
apollo-configservice
server
:
server
:
port
:
${port:
2756
}
port
:
${port:
8080
}
logging
:
logging
:
level
:
level
:
org.springframework.cloud
:
'
DEBUG'
org.springframework.cloud
:
'
DEBUG'
file
:
/opt/logs/apollo-configservice.log
file
:
/opt/logs/
${ctrip.appid}/
apollo-configservice.log
ctrip
:
ctrip
:
appid
:
100003171
appid
:
100003171
\ No newline at end of file
apollo-configservice/src/main/resources/bootstrap.yml
View file @
44a2e143
eureka
:
eureka
:
instance
:
instance
:
hostname
:
${hostname:localhost}
hostname
:
${hostname:localhost}
preferIpAddress
:
true
client
:
client
:
serviceUrl
:
serviceUrl
:
defaultZone
:
http://${eureka.instance.hostname}/eureka/
defaultZone
:
http://${eureka.instance.hostname}
:8080
/eureka/
healthcheck
:
healthcheck
:
enabled
:
true
enabled
:
true
\ No newline at end of file
apollo-core/src/main/java/com/ctrip/apollo/core/MetaDomainConsts.java
View file @
44a2e143
...
@@ -7,21 +7,29 @@ import com.ctrip.apollo.Apollo.Env;
...
@@ -7,21 +7,29 @@ import com.ctrip.apollo.Apollo.Env;
public
class
MetaDomainConsts
{
public
class
MetaDomainConsts
{
public
static
final
String
LOCAL
=
"http://localhost
"
;
public
static
final
String
DEFAULT_PORT
=
"8080
"
;
public
static
final
String
DEV
=
"http://ws.meta.apollo.fx.dev.nt.ctripcorp.com"
;
public
static
final
String
LOCAL
=
"http://localhost"
+
"/"
+
DEFAULT_PORT
;
public
static
final
String
FAT
=
"http://ws.meta.apollo.fx.fat.nt.ctripcorp.com"
;;
public
static
final
String
DEV
=
"http://ws.meta.apollo.fx.dev.nt.ctripcorp.com"
+
"/"
+
DEFAULT_PORT
;
public
static
final
String
FWS
=
"http://ws.meta.apollo.fx.fws.nt.ctripcorp.com"
;
public
static
final
String
FAT
=
"http://ws.meta.apollo.fx.fat.nt.ctripcorp.com"
+
"/"
+
DEFAULT_PORT
;
public
static
final
String
UAT
=
"http://ws.meta.apollo.fx.uat.nt.ctripcorp.com"
;
public
static
final
String
FWS
=
"http://ws.meta.apollo.fx.fws.nt.ctripcorp.com"
+
"/"
+
DEFAULT_PORT
;
public
static
final
String
LPT
=
"http://ws.meta.apollo.fx.lpt.nt.ctripcorp.com"
;
public
static
final
String
UAT
=
"http://ws.meta.apollo.fx.uat.nt.ctripcorp.com"
+
"/"
+
DEFAULT_PORT
;
public
static
final
String
TOOLS
=
"http://ws.meta.apollo.fx.tools.ctripcorp.com"
;
public
static
final
String
LPT
=
"http://ws.meta.apollo.fx.lpt.nt.ctripcorp.com"
+
"/"
+
DEFAULT_PORT
;
public
static
final
String
PRD
=
"http://ws.meta.apollo.fx.ctripcorp.com"
;
public
static
final
String
TOOLS
=
"http://ws.meta.apollo.fx.tools.ctripcorp.com"
+
"/"
+
DEFAULT_PORT
;
public
static
final
String
PRD
=
"http://ws.meta.apollo.fx.ctripcorp.com"
+
"/"
+
DEFAULT_PORT
;
private
static
Map
<
Env
,
String
>
domains
=
new
HashMap
<>();
private
static
Map
<
Env
,
String
>
domains
=
new
HashMap
<>();
...
...
apollo-portal/src/main/resources/application.yml
View file @
44a2e143
...
@@ -5,9 +5,14 @@ spring:
...
@@ -5,9 +5,14 @@ spring:
application
:
application
:
name
:
apollo-portal
name
:
apollo-portal
datasource
:
datasource
:
url
:
jdbc:h2:
file
:~/fxapolloportaldb
url
:
jdbc:h2:
mem
:~/fxapolloportaldb
username
:
sa
username
:
sa
password
:
sa
password
:
sa
logging
:
level
:
org.springframework.cloud
:
'
DEBUG'
file
:
/opt/logs/${ctrip.appid}/apollo-adminservice.log
ctrip
:
ctrip
:
appid
:
100003173
appid
:
100003173
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment