Skip to content

Commit

Permalink
docs: application.properties dev prod 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu11 committed Feb 18, 2024
1 parent fbc4f2e commit ee91ba3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
spring.security.user.name=admin
spring.security.user.password=1234
server.port=5050
eureka.server.my-url=eureka
eureka.client.service-url.defaultZone=\
http://${spring.security.user.name}:${spring.security.user.password}@localhost:${server.port}/${eureka.server.my-url}/
7 changes: 7 additions & 0 deletions src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
spring.security.user.name=admin
spring.security.user.password=1234
server.port=5050
server.address=180.210.82.248
eureka.server.my-url=eureka
eureka.client.service-url.defaultZone=\
http://${spring.security.user.name}:${spring.security.user.password}@${server.address}:${server.port}/${eureka.server.my-url}/
4 changes: 1 addition & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ server.shutdown=graceful
spring.lifecycle.timeout-per-shutdown-phase=10s
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
spring.security.user.name=admin
spring.security.user.password=1234
server.port=5050
spring.profiles.active=dev
eureka.client.service-url.defaultZone=\
http://${spring.security.user.name}:${spring.security.user.password}@180.210.82.248:${server.port}/eureka/

0 comments on commit ee91ba3

Please sign in to comment.