diff --git a/.gitignore b/.gitignore index b3c731f..3564234 100644 --- a/.gitignore +++ b/.gitignore @@ -191,3 +191,7 @@ gradle-app.setting ### Gradle Patch ### # Java heap dump *.hprof + +### yml ### +/src/main/resources/application-local.yml +/src/main/resources/application-prod.yml \ No newline at end of file diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml deleted file mode 100644 index 7ced6c9..0000000 --- a/src/main/resources/application-local.yml +++ /dev/null @@ -1,74 +0,0 @@ -server: - port: 8080 - -spring: - config: - activate: - on-profile: local - - application: - name: User-Service - -# data: -# redis: -# host: localhost -# port: 6379 - -# jpa: -# database: postgresql -# hibernate: -# dialect: org.hibernate.dialect.PostgresSQLDialect -# hibernate.ddl-auto: create -# show-sql: true -# properties: -# hibernate.format_sql: true - - #JPA 설정 - jpa: - database-platform: - hibernate: - ddl-auto: create # create or validate - - #배포 할 때는 open-in-view false 설정 - open-in-view: false - properties: - hibernate: - show_sql: true - format_sql: true - - datasource: - driver-class-name: org.h2.Driver - url: jdbc:h2:tcp://localhost/~/userServ;NON_KEYWORDS=USER - username: sa - password: - -# mail: -# host: smtp.gmail.com -# port: 587 -# username: ENC(I+PDk31WFTOU39AypeTrZFVbb8MSpV9oL9q2C3HGQD8/1+Wj7fVmMw==) -# password: ENC(TRk22TqlQbz1iTprwMnpiEMZLFAarFDjMf/iTDTnDCw=) -# properties: -# mail: -# smtp: -# auth: true -# starttls: -# enable: true -# required: true -# connection-timeout: 5000 -# timeout: 5000 -# write timeout: 5000 -# auth-code-expiration-millis: 600000 # 10분 - -#eureka: -# instance: -# instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}} -# client: -# register-with-eureka: true -# fetch-registry: true -# service-url: -# defaultZone: http://13.125.181.139:8761/eureka - -greeting: - message: Welcome to the Ice-Americano Page - -secretKey: amazing diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml deleted file mode 100644 index dfad57f..0000000 --- a/src/main/resources/application-prod.yml +++ /dev/null @@ -1,67 +0,0 @@ -server: - port: 8080 - -spring: - config: - activate: - on-profile: prod - - application: - name: User-Service - - cache: - type: redis - - data: - redis: - host: - port: 6379 - password: - - #JPA 설정 - jpa: - database-platform: - hibernate: - ddl-auto: create # create or validate - - #배포 할 때는 open-in-view false 설정 - open-in-view: false - properties: - hibernate: - show_sql: true - format_sql: true - - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: - username: - password: - - mail: - host: smtp.gmail.com - port: 587 #TLS : 587, SSL : 465 - username: - password: - properties: - mail: - smtp: - auth: true - starttls: - enable: true - required: true - connection-timeout: 5000 - timeout: 5000 - write timeout: 5000 - auth-code-expiration-millis: 600000 # 10분 - -eureka: - client: - register-with-eureka: true - fetch-registry: true - service-url: - defaultZone: - -greeting: - message: Welcome to the Studio-eye Page - -secretKey: \ No newline at end of file