Skip to content

Commit

Permalink
Create application.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Due-IT authored Jul 5, 2024
1 parent b54e87c commit ed97ed5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#Spring Data JPA
spring.datasource.url=${DB_URL}
spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD}
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver

spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update

# spring boot 2.5.x to use script
spring.sql.init.mode=always
# script use after hibernate initilalization
spring.jpa.defer-datasource-initialization=true

#OAuth2
#test
spring.security.oauth2.client.registration.google.client-id=${GOOGLE_ID}
spring.security.oauth2.client.registration.google.client-secret=${GOOGLE_SECRET}
spring.security.oauth2.client.registration.google.redirect-uri=http://localhost:8080/oauth2/callback/google
spring.security.oauth2.client.registration.google.scope=email,profile

spring.security.oauth2.client.registration.github.client-id=${GITHUB_ID}
spring.security.oauth2.client.registration.github.client-secret=${GITHUB_SECRET}
spring.security.oauth2.client.registration.github.redirect-uri=http://localhost:8080/oauth2/callback/github
spring.security.oauth2.client.registration.github.scope=user:email,read:user

app.auth.tokenSecret=04ca023b39512e46d0c2cf4b48d5aac61d34302994c87ed4eff225dcf3b0a218739f3897051a057f9b846a69ea2927a587044164b7bae5e1306219d50b588cb1
app.auth.tokenExpirationMsec = 864000000
app.cors.allowedOrigins=https://gloog.vercel.app,http://localhost:3000,http://localhost:8080
app.oauth2.authorizedRedirectUris=https://gloog.vercel.app/oauth2/redirect,http://localhost:3000/oauth2/redirect,myandroidapp://oauth2/redirect,myiosapp://oauth2/redirect

app.GitHub.gitHubToken=${GITHUB_TOKEN}

#AWS
cloud.aws.credentials.accessKey=${S3_ACCESSKEY}
cloud.aws.credentials.secretKey=${S3_SECRETKEY}
cloud.aws.s3.bucket=elasticbeanstalk-us-east-1-064991853848
cloud.aws.region.static=us-east-1
cloud.aws.stack.auto=false

0 comments on commit ed97ed5

Please sign in to comment.