diff --git a/server/src/main/resources/application.properties b/server/src/main/resources/application.properties new file mode 100644 index 0000000..037f26c --- /dev/null +++ b/server/src/main/resources/application.properties @@ -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