|
| 1 | +# |
| 2 | +# Twitter Backend - Moo: Twitter Clone Application Backend by Scaler |
| 3 | +# Copyright © 2021 Subhrodip Mohanta ([email protected]) |
| 4 | +# |
| 5 | +# This program is free software: you can redistribute it and/or modify |
| 6 | +# it under the terms of the GNU Affero General Public License as published by |
| 7 | +# the Free Software Foundation, either version 3 of the License, or |
| 8 | +# (at your option) any later version. |
| 9 | +# |
| 10 | +# This program is distributed in the hope that it will be useful, |
| 11 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | +# GNU Affero General Public License for more details. |
| 14 | +# |
| 15 | +# You should have received a copy of the GNU Affero General Public License |
| 16 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | +# |
| 18 | + |
| 19 | +###### THIS IS THE DEV PROPERTIES ##### |
| 20 | + |
| 21 | +# ===================================== |
| 22 | +# ========= SPRING SECURITY =========== |
| 23 | +# ===================================== |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +# ===================================== |
| 28 | +# =========== DATA SOURCE ============= |
| 29 | +# ===================================== |
| 30 | + |
| 31 | +# Set here configurations for the database connection |
| 32 | +spring.datasource.url=jdbc:mysql://${MYSQL_DB_HOST}:${MYSQL_DB_PORT}/twitter?createDatabaseIfNotExist=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Kolkata&useSSL=false |
| 33 | + |
| 34 | +# Username and secret |
| 35 | +spring.datasource.username=${MYSQL_DB_UNAME} |
| 36 | +spring.datasource.password=${MYSQL_DB_PASSWD} |
| 37 | + |
| 38 | +# Keep the connection alive if idle for a long time (needed in production) |
| 39 | +spring.datasource.testWhileIdle=true |
| 40 | +spring.datasource.validationQuery=SELECT 1 |
| 41 | + |
| 42 | + |
| 43 | +# ==================================== |
| 44 | +# ========= JPA / HIBERNATE ========== |
| 45 | +# ==================================== |
| 46 | + |
| 47 | +# Use spring.jpa.properties.* for Hibernate native properties (the prefix is |
| 48 | +# stripped before adding them to the entity manager). |
| 49 | +# Show or not log for each sql query |
| 50 | +spring.jpa.show-sql=true |
| 51 | +spring.jpa.properties.hibernate.format_sql=true |
| 52 | + |
| 53 | + |
| 54 | +# Allows Hibernate to generate SQL optimized for a particular DBMS |
| 55 | +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect |
| 56 | +spring.jpa.properties.hibernate.id.new_generator_mappings=false |
| 57 | + |
0 commit comments