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
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
80 additions
and
23 deletions
+80
-23
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
+2
-0
pom.xml
apollo-configservice/pom.xml
+42
-8
ServerApplication.java
...ice/src/main/java/com/ctrip/apollo/ServerApplication.java
+3
-0
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:
name
:
apollo-adminservice
server
:
port
:
${port:
23646
}
port
:
${port:
8090
}
logging
:
level
:
org.springframework.cloud
:
'
DEBUG'
file
:
/opt/logs/apollo-adminservice.log
file
:
/opt/logs/
${ctrip.appid}/
apollo-adminservice.log
ctrip
:
appid
:
100003172
apollo-adminservice/src/main/resources/bootstrap.yml
View file @
44a2e143
...
...
@@ -3,6 +3,6 @@ eureka:
hostname
:
${hostname:localhost}
client
:
serviceUrl
:
defaultZone
:
http://${eureka.instance.hostname}/eureka/
defaultZone
:
http://${eureka.instance.hostname}
:8080
/eureka/
healthcheck
:
enabled
:
true
\ No newline at end of file
apollo-biz/src/main/resources/application.properties
View file @
44a2e143
...
...
@@ -3,3 +3,4 @@ spring.datasource.username = sa
spring.datasource.password
=
spring.jpa.hibernate.naming_strategy
=
org.hibernate.cfg.EJB3NamingStrategy
spring.h2.console.enabled
=
true
spring.h2.console.settings.web-allow-others
=
true
\ No newline at end of file
apollo-configservice/pom.xml
View file @
44a2e143
...
...
@@ -18,19 +18,50 @@
</dependency>
<!-- end of apollo -->
<!-- redis -->
<dependency>
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
redis.clients
</groupId>
<artifactId>
jedis
</artifactId>
</dependency>
<!-- <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId>
</dependency> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId>
</dependency> -->
<!-- end of redis -->
<!-- eureka -->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<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>
<!-- end of eureka -->
</dependencies>
...
...
@@ -39,6 +70,9 @@
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<executable>
true
</executable>
</configuration>
</plugin>
</plugins>
</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;
/**
* Spring boot application entry point
*
* @author Jason Song(song_s@ctrip.com)
*/
@SpringBootApplication
@EnableEurekaServer
@EnableEurekaClient
public
class
ServerApplication
{
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:
name
:
apollo-configservice
server
:
port
:
${port:
2756
}
port
:
${port:
8080
}
logging
:
level
:
org.springframework.cloud
:
'
DEBUG'
file
:
/opt/logs/apollo-configservice.log
file
:
/opt/logs/
${ctrip.appid}/
apollo-configservice.log
ctrip
:
appid
:
100003171
\ No newline at end of file
apollo-configservice/src/main/resources/bootstrap.yml
View file @
44a2e143
eureka
:
instance
:
hostname
:
${hostname:localhost}
preferIpAddress
:
true
client
:
serviceUrl
:
defaultZone
:
http://${eureka.instance.hostname}/eureka/
defaultZone
:
http://${eureka.instance.hostname}
:8080
/eureka/
healthcheck
:
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;
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
<>();
...
...
apollo-portal/src/main/resources/application.yml
View file @
44a2e143
...
...
@@ -5,9 +5,14 @@ spring:
application
:
name
:
apollo-portal
datasource
:
url
:
jdbc:h2:
file
:~/fxapolloportaldb
url
:
jdbc:h2:
mem
:~/fxapolloportaldb
username
:
sa
password
:
sa
logging
:
level
:
org.springframework.cloud
:
'
DEBUG'
file
:
/opt/logs/${ctrip.appid}/apollo-adminservice.log
ctrip
:
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