src/main/resources/application.properties

이거 일단 로컬버전

# Swagger 3.0.0 Setting
spring.mvc.pathmatch.matching-strategy = ant_path_matcher

server.port=8081

spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
spring.datasource.url = jdbc:mysql://localhost:3306/howdoilook?serverTimezone=Asia/Seoul
spring.datasource.username = root
spring.datasource.password = ssafy

spring.jpa.hibernate.ddl-auto = create
spring.jpa.hibernate.naming.physical-strategy = org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.show-sql = true

# JWT

jwt.secretKey = 1fad3s2f1sd658f41asd32f1s23df1s65df4sd6f1d5fa61sd5f1asd23f1s23df1as35df1as56df1s6df1asd2f1s3d2f1as3df51asd3f5s1df2as3df1as5df1as35df1asd23f1asd35f1sad35f1das351fad2s3f187

# accessToken :
jwt.access.expiration = 3600000
jwt.access.header = Authorization

# refreshToken : 2?
jwt.refresh.expiration = 1209600000
jwt.refresh.header = Authorization-Refresh

# Redis
spring.redis.host = localhost
spring.redis.port = 6379
logging.level.org.springframework.data.redis=ERROR

# Google
spring.security.oauth2.client.registration.google.client-id = 963764288316-ggma8507v2m1pt6i8gpjj13dorv1v4la.apps.googleusercontent.com
spring.security.oauth2.client.registration.google.client-secret = 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
spring.security.oauth2.client.registration.google.scope = profile, email

# Naver
spring.security.oauth2.client.registration.naver.client-id = ZKhSdPnIMBfwWI_fDwpj
spring.security.oauth2.client.registration.naver.client-secret = wc1oMkv7bC
spring.security.oauth2.client.registration.naver.client-name = Naver
spring.security.oauth2.client.registration.naver.authorization-grant-type = authorization_code
spring.security.oauth2.client.registration.naver.scope = name, email, profile_image
spring.security.oauth2.client.registration.naver.redirect-uri = <http://localhost:8081/login/oauth2/code/naver>

# Naver Provider
spring.security.oauth2.client.provider.naver.authorization-uri = <https://nid.naver.com/oauth2.0/authorize>
spring.security.oauth2.client.provider.naver.token-uri = <https://nid.naver.com/oauth2.0/token>
spring.security.oauth2.client.provider.naver.user-info-uri = <https://openapi.naver.com/v1/nid/me>
spring.security.oauth2.client.provider.naver.user-name-attribute = response

# Kakao
spring.security.oauth2.client.registration.kakao.client-id = 16fc56973360307b4c6aa4134e50e8bd
spring.security.oauth2.client.registration.kakao.client-secret = Ti606jw2CI6TkHjzLyL2kz2FWWmBpn7s
spring.security.oauth2.client.registration.kakao.client-name = Kakao
spring.security.oauth2.client.registration.kakao.client-authentication-method = POST
spring.security.oauth2.client.registration.kakao.authorization-grant-type = authorization_code
spring.security.oauth2.client.registration.kakao.scope = profile_nickname, profile_image
spring.security.oauth2.client.registration.kakao.redirect-uri = <http://localhost:8081/login/oauth2/code/kakao>

# Kakao Provider
spring.security.oauth2.client.provider.kakao.authorization-uri = <https://kauth.kakao.com/oauth/authorize>
spring.security.oauth2.client.provider.kakao.token-uri = <https://kauth.kakao.com/oauth/token>
spring.security.oauth2.client.provider.kakao.user-info-uri = <https://kapi.kakao.com/v2/user/me>
spring.security.oauth2.client.provider.kakao.user-name-attribute = id

# Cloud AWS S3 Configuration
cloud.aws.s3.bucket=howdobucket

# AWS Credentials
cloud.aws.credentials.access-key=AKIAQD6YVVBDXQVRAM6N
cloud.aws.credentials.secret-key=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

# AWS Region
cloud.aws.region.static=ap-northeast-2
cloud.aws.region.auto=false

# AWS Stack
cloud.aws.stack.auto=false

# OpenVidu
server.ssl.enabled: false
OPENVIDU_URL: <https://howdoilook-streaming.shop:8443>
OPENVIDU_SECRET: HOWDOILOOK

#Mongo DB setup
spring.data.mongodb.uri=mongodb+srv://S09P13B304:[email protected]/S09P13B304?authSource=admin

# remove.bg API
remove.bg.apiKey=ejoQgLxsPGZYtcPXxPxC32he

# python file path
python.file.path=C:/SSAFY/workspace/howdoilook2/main.py

이거 일단 배포버전 (소셜로그인 링크 부분 조금 고치긴 해야함. 그 외 테스트는 가능)

server.port=8081
server.tomcat.allowed-origins=*

# Swagger 3.0.0 Setting
spring.mvc.pathmatch.matching-strategy = ant_path_matcher

spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
spring.datasource.url = jdbc:mysql://i9b304.p.ssafy.io:3306/howdoilook?serverTimezone=Asia/Seoul
spring.datasource.username = howdoilook
spring.datasource.password = 6how6do6i6look6

spring.jpa.hibernate.ddl-auto = create
spring.jpa.hibernate.naming.physical-strategy = org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.show-sql = true

# JWT

jwt.secretKey = 1fad3s2f1sd658f41asd32f1s23df1s65df4sd6f1d5fa61sd5f1asd23f1s23df1as35df1as56df1s6df1asd2f1s3d2f1as3df51asd3f5s1df2as3df1as5df1as35df1asd23f1asd35f1sad35f1das351fad2s3f187

# accessToken :
jwt.access.expiration = 3600000
jwt.access.header = Authorization

# refreshToken :
jwt.refresh.expiration = 1209600000
jwt.refresh.header = Authorization-Refresh

# Redis
spring.redis.host = 3.34.123.128
spring.redis.port = 6000
#logging.level.org.springframework.data.redis=ERROR

# Google
spring.security.oauth2.client.registration.google.client-id = 1083579753780-uga4aja40cmtk6gffrq0gpaa0s84h0sm.apps.googleusercontent.com
spring.security.oauth2.client.registration.google.client-secret = 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
spring.security.oauth2.client.registration.google.scope = profile, email
spring.security.oauth2.client.registration.google.redirect-uri = <https://i9b304.p.ssafy.io/login/oauth2/code/google>

# Naver
spring.security.oauth2.client.registration.naver.client-id = 0NL10Toe6YHYW06wG1JE
spring.security.oauth2.client.registration.naver.client-secret = 5L2NAR2mMX
spring.security.oauth2.client.registration.naver.client-name = Naver
spring.security.oauth2.client.registration.naver.authorization-grant-type = authorization_code
spring.security.oauth2.client.registration.naver.scope = name, email, profile_image
spring.security.oauth2.client.registration.naver.redirect-uri = <https://i9b304.p.ssafy.io/login/oauth2/code/naver>

# Naver Provider
spring.security.oauth2.client.provider.naver.authorization-uri = <https://nid.naver.com/oauth2.0/authorize>
spring.security.oauth2.client.provider.naver.token-uri = <https://nid.naver.com/oauth2.0/token>
spring.security.oauth2.client.provider.naver.user-info-uri = <https://openapi.naver.com/v1/nid/me>
spring.security.oauth2.client.provider.naver.user-name-attribute = response

# Kakao
spring.security.oauth2.client.registration.kakao.client-id = 3caa0a89a2b4ae0143695f88c46b729c
spring.security.oauth2.client.registration.kakao.client-secret = 1roHpUrFWORpN6ywBbTbdiAqRxGy5ISD
spring.security.oauth2.client.registration.kakao.client-name = Kakao
spring.security.oauth2.client.registration.kakao.client-authentication-method = POST
spring.security.oauth2.client.registration.kakao.authorization-grant-type = authorization_code
spring.security.oauth2.client.registration.kakao.scope = profile_nickname, profile_image
spring.security.oauth2.client.registration.kakao.redirect-uri = <https://i9b304.p.ssafy.io/login/oauth2/code/kakao>

# Kakao Provider
spring.security.oauth2.client.provider.kakao.authorization-uri = <https://kauth.kakao.com/oauth/authorize>
spring.security.oauth2.client.provider.kakao.token-uri = <https://kauth.kakao.com/oauth/token>
spring.security.oauth2.client.provider.kakao.user-info-uri = <https://kapi.kakao.com/v2/user/me>
spring.security.oauth2.client.provider.kakao.user-name-attribute = id

# Cloud AWS S3 Configuration
cloud.aws.s3.bucket=howdobucket

# AWS Credentials
cloud.aws.credentials.access-key=AKIAQD6YVVBDXQVRAM6N
cloud.aws.credentials.secret-key=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

# AWS Region
cloud.aws.region.static=ap-northeast-2
cloud.aws.region.auto=false

# AWS Stack
cloud.aws.stack.auto=false

# OpenVidu
server.ssl.enabled: false
OPENVIDU_URL: <https://howdoilook-streaming.shop:8443>
OPENVIDU_SECRET: HOWDOILOOK

#Mongo DB setup
spring.data.mongodb.uri=mongodb+srv://S09P13B304:[email protected]/S09P13B304?authSource=admin

# remove.bg API
remove.bg.apiKey=ejoQgLxsPGZYtcPXxPxC32he

python.file.path=/home/ubuntu/S09P12B304/RemoveImageBg.py

설명

spring.jpa.hibernate.ddl-auto :

에 들어갈 수 있는 종류

create, create-drop, update, none

추천 : 테이블 처음 만들 때 : create, 그 외 : none

  1. create