diff --git a/config b/config index 713ace9..c02e79c 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 713ace9d5627c49feae933551080c70f5f5c612d +Subproject commit c02e79c9aad0a236f1549e849233f9b9193a025f diff --git a/config_server/build.gradle b/config_server/build.gradle index 88a9356..6e361ae 100644 --- a/config_server/build.gradle +++ b/config_server/build.gradle @@ -29,7 +29,8 @@ dependencies { compile('org.springframework.boot:spring-boot-starter') testCompile('org.springframework.boot:spring-boot-starter-test') compile('org.springframework.cloud:spring-cloud-config-server') - + compile('org.springframework.boot:spring-boot-starter-web') + compile('org.springframework.boot:spring-boot-starter-security') } dependencyManagement { diff --git a/config_server/src/main/resources/application.properties b/config_server/src/main/resources/application.properties index 20eca9a..7c220c7 100644 --- a/config_server/src/main/resources/application.properties +++ b/config_server/src/main/resources/application.properties @@ -1,3 +1,7 @@ server.port=8888 -spring.cloud.config.server.git.uri=${HOME}/NWT/steleks_web_app/config \ No newline at end of file +spring.cloud.config.server.git.uri=https://github.com/esensar/steleks_config +spring.cloud.config.server.git.clone-on-start=true + +security.user.name=root +security.user.password=s3cr3t \ No newline at end of file diff --git a/events/src/main/resources/application.properties b/events/src/main/resources/application.properties index eade546..994728a 100644 --- a/events/src/main/resources/application.properties +++ b/events/src/main/resources/application.properties @@ -1,24 +1,24 @@ server.port = 9020 -# -#spring.datasource.url = jdbc:mysql://localhost:3306/events -#spring.datasource.username = root -#spring.datasource.password = 1DvaTri! -# -## Keep the connection alive if idle for a long time (needed in production) -#spring.datasource.testWhileIdle = true -#spring.datasource.validationQuery = SELECT 1 -# -## Show or not log for each sql query -#spring.jpa.show-sql = true -# -## Hibernate ddl auto (create, create-drop, update) -#spring.jpa.hibernate.ddl-auto = update -# -## Naming strategy -#spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy -# -## Use spring.jpa.properties.* for Hibernate native properties (the prefix is -## stripped before adding them to the entity manager) -# -## The SQL dialect makes Hibernate generate better SQL for the chosen database -#spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect + +spring.datasource.url = jdbc:mysql://localhost:3306/events +spring.datasource.username = root +spring.datasource.password = 1DvaTri! + +# Keep the connection alive if idle for a long time (needed in production) +spring.datasource.testWhileIdle = true +spring.datasource.validationQuery = SELECT 1 + +# Show or not log for each sql query +spring.jpa.show-sql = true + +# Hibernate ddl auto (create, create-drop, update) +spring.jpa.hibernate.ddl-auto = update + +# Naming strategy +spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy + +# Use spring.jpa.properties.* for Hibernate native properties (the prefix is +# stripped before adding them to the entity manager) + +# The SQL dialect makes Hibernate generate better SQL for the chosen database +spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect diff --git a/teams/src/main/resources/application.properties b/teams/src/main/resources/application.properties index 943d197..7ec8116 100644 --- a/teams/src/main/resources/application.properties +++ b/teams/src/main/resources/application.properties @@ -1 +1,24 @@ -server.port=9010 \ No newline at end of file +server.port=9010 + +spring.datasource.url = jdbc:mysql://localhost:3306/teams +spring.datasource.username = root +spring.datasource.password = 1DvaTri! + +# Keep the connection alive if idle for a long time (needed in production) +spring.datasource.testWhileIdle = true +spring.datasource.validationQuery = SELECT 1 + +# Show or not log for each sql query +spring.jpa.show-sql = true + +# Hibernate ddl auto (create, create-drop, update) +spring.jpa.hibernate.ddl-auto = update + +# Naming strategy +spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy + +# Use spring.jpa.properties.* for Hibernate native properties (the prefix is +# stripped before adding them to the entity manager) + +# The SQL dialect makes Hibernate generate better SQL for the chosen database +spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect diff --git a/users/src/main/resources/application.properties b/users/src/main/resources/application.properties index 91f7491..2eee343 100644 --- a/users/src/main/resources/application.properties +++ b/users/src/main/resources/application.properties @@ -1 +1,24 @@ -server.port = 8090 \ No newline at end of file +server.port = 8090 + +spring.datasource.url = jdbc:mysql://localhost:3306/users +spring.datasource.username = root +spring.datasource.password = 1DvaTri! + +# Keep the connection alive if idle for a long time (needed in production) +spring.datasource.testWhileIdle = true +spring.datasource.validationQuery = SELECT 1 + +# Show or not log for each sql query +spring.jpa.show-sql = true + +# Hibernate ddl auto (create, create-drop, update) +spring.jpa.hibernate.ddl-auto = update + +# Naming strategy +spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy + +# Use spring.jpa.properties.* for Hibernate native properties (the prefix is +# stripped before adding them to the entity manager) + +# The SQL dialect makes Hibernate generate better SQL for the chosen database +spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect