Prepare for open source and stopped tracking application-local.yaml
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ public class SecurityConfig {
|
||||
@Bean
|
||||
public CorsConfigurationSource corsConfigurationSource() {
|
||||
CorsConfiguration configuration = new CorsConfiguration();
|
||||
configuration.setAllowedOrigins(List.of("http://localhost:4200"));
|
||||
configuration.setAllowedOrigins(List.of("http://localhost:4200", "http://localhost:5050"));
|
||||
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
|
||||
configuration.setAllowedHeaders(List.of("Authorization", "Cache-Control", "Content-Type"));
|
||||
configuration.setExposedHeaders(List.of("Content-Disposition"));
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
|
||||
|
||||
app:
|
||||
path-book: '/Users/aditya.chandel/my-library-temp/books'
|
||||
path-config: '/Users/aditya.chandel/my-library-temp/config/local'
|
||||
|
||||
spring:
|
||||
servlet:
|
||||
multipart:
|
||||
enabled: true
|
||||
max-file-size: 100MB
|
||||
max-request-size: 100MB
|
||||
mvc:
|
||||
async:
|
||||
request-timeout: 600000
|
||||
application:
|
||||
name: booklore-api
|
||||
datasource:
|
||||
driver-class-name: org.h2.Driver
|
||||
url: 'jdbc:h2:tcp://localhost:8040/~/my-library-temp/config/local/db/booklore'
|
||||
username: sa
|
||||
password: password
|
||||
jpa:
|
||||
hibernate:
|
||||
naming:
|
||||
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
||||
show-sql: false
|
||||
properties:
|
||||
hibernate:
|
||||
jdbc:
|
||||
batch_size: 500
|
||||
order_inserts: true
|
||||
order_updates: true
|
||||
flyway:
|
||||
enabled: true
|
||||
locations: classpath:db/migration
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: INFO
|
||||
org.apache.fontbox: ERROR
|
||||
org.apache.pdfbox: ERROR
|
||||
|
||||
server:
|
||||
port: 7050
|
||||
@@ -14,11 +14,12 @@ spring:
|
||||
application:
|
||||
name: booklore-api
|
||||
datasource:
|
||||
driver-class-name: org.h2.Driver
|
||||
url: 'jdbc:h2:/app/config/db/booklore'
|
||||
username: sa
|
||||
password: password
|
||||
driver-class-name: org.mariadb.jdbc.Driver
|
||||
url: jdbc:mariadb://mariadb:3306/booklore?createDatabaseIfNotExist=true
|
||||
username: root
|
||||
password: ${MYSQL_ROOT_PASSWORD}
|
||||
jpa:
|
||||
database-platform: org.hibernate.dialect.MariaDBDialect
|
||||
hibernate:
|
||||
naming:
|
||||
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
||||
|
||||
Reference in New Issue
Block a user