diff --git a/.gitignore b/.gitignore index 8a409ed..c455574 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ target/ *.iml *.ipr src/main/resources/application-local.properties +update_env_var.sh ### NetBeans ### /nbproject/private/ diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e678576..80137c6 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,2 +1,20 @@ spring.application.name=SafeQR-app -spring.profiles.active=local +#spring.profiles.active=local +http.port=${HTTP_PORT} +server.port=${SERVER_PORT} +server.ssl.enabled=true +server.ssl.key-store-type=${SERVER_SSL_KEY_STORE_TYPE} +server.ssl.key-store=${SERVER_SSL_KEY_STORE_LOCATION} +server.ssl.key-store-password=${SERVER_SSL_KEY_STORE_PASSWORD} +server.ssl.key-alias=${SERVER_SSL_KEY_ALIAS} +trust.store=${SERVER_SSL_TRUST_STORE_LOCATION} +trust.store.password=${SERVER_SSL_TRUST_STORE_PASSWORD} + +spring.datasource.url=${SERVER_DB_URL} +spring.datasource.username=${SERVER_DB_USERNAME} +spring.datasource.password=${SERVER_DB_PASSWORD} +spring.datasource.driver-class-name=${SERVER_DB_DRIVER_CLASS_NAME} +spring.jpa.database-platform=${SERVER_DB_DIALECT} +spring.jpa.hibernate.ddl-auto=update +spring.jpa.show-sql=true +spring.jpa.properties.hibernate.format_sql=true