Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Backend-feedme/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# backend
.
.x
354 changes: 177 additions & 177 deletions Backend-feedme/feedme/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,184 +1,184 @@
# spring:
# application:
# name: feedme
# admin:
# enabled: false # Spring Boot Admin 비활성화
# jmx:
# enabled: false # JMX 비활성화
# main:
# application-class: com.todoslave.FeedmeApplication

# security:
# oauth2:
# client:
# registration:
# naver:
# client-id: ${NAVER_CLIENT_ID}
# client-secret: ${NAVER_CLIENT_SECRET}
# client-name: Naver
# redirect-uri: http://localhost:8080/login/oauth2/code/naver
# authorization-grant-type: authorization_code
# scope:
# - name
# - email
# kakao:
# client-id: ${KAKAO_CLIENT_ID}
# client-secret: ${KAKAO_CLIENT_SECRET}
# client-name: Kakao
# client-authentication-method: client_secret_post
# redirect-uri: http://localhost:8080/login/oauth2/code/kakao
# authorization-grant-type: authorization_code
# scope:
# - profile_nickname
# - account_email
# provider:
# naver:
# authorization-uri: https://nid.naver.com/oauth2.0/authorize
# token-uri: https://nid.naver.com/oauth2.0/token
# user-info-uri: https://openapi.naver.com/v1/nid/me
# user-name-attribute: response
# kakao:
# authorizationUri: https://kauth.kakao.com/oauth/authorize
# tokenUri: https://kauth.kakao.com/oauth/token
# userInfoUri: https://kapi.kakao.com/v2/user/me
# userNameAttribute: id

# datasource:
# url: jdbc:mysql://localhost:3306/feedme
# username: ${DB_USERNAME}
# password: ${DB_PASSWORD}
# driver-class-name: com.mysql.cj.jdbc.Driver

# data:
# mongodb:
# host: localhost
# port: 27017
# database: feedme
# uri: mongodb://localhost:27017/feedme

# jpa:
# hibernate:
# ddl-auto: update
# show-sql: true
# properties:
# hibernate:
# dialect: org.hibernate.dialect.MySQL8Dialect
# format_sql: true

# logging:
# level:
# org:
# hibernate:
# SQL: debug
# type: trace

# redis:
# host: localhost
# port: 6379

# jwt:
# issuer: todoslave@ssafy.com
# secret_key: ${JWT_SECRET_KEY}


# #이건 살림
# openai:
# model: "gpt-3.5-turbo"
# api:
# key: ${GPT_SECRET_KEY}
# url: "https://api.openai.com/v1/chat/completions"




spring:
application:
name: feedme
admin:
enabled: false # Spring Boot Admin 비활성화
jmx:
enabled: false # JMX 비활성화
main:
application-class: com.todoslave.FeedmeApplication

security:
oauth2:
client:
registration:
naver:
client-id: ${NAVER_CLIENT_ID}
client-secret: ${NAVER_CLIENT_SECRET}
client-name: Naver
redirect-uri: http://localhost:8080/login/oauth2/code/naver
authorization-grant-type: authorization_code
scope:
- name
- email
kakao:
client-id: ${KAKAO_CLIENT_ID}
client-secret: ${KAKAO_CLIENT_SECRET}
client-name: Kakao
client-authentication-method: client_secret_post
redirect-uri: http://localhost:8080/login/oauth2/code/kakao
authorization-grant-type: authorization_code
scope:
- profile_nickname
- account_email
provider:
naver:
authorization-uri: https://nid.naver.com/oauth2.0/authorize
token-uri: https://nid.naver.com/oauth2.0/token
user-info-uri: https://openapi.naver.com/v1/nid/me
user-name-attribute: response
kakao:
authorizationUri: https://kauth.kakao.com/oauth/authorize
tokenUri: https://kauth.kakao.com/oauth/token
userInfoUri: https://kapi.kakao.com/v2/user/me
userNameAttribute: id

datasource:
url: jdbc:mysql://localhost:3306/feedme
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver

data:
mongodb:
host: localhost
port: 27017
database: feedme
uri: mongodb://localhost:27017/feedme

jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
format_sql: true
application:
name: feedme
admin:
enabled: false # Spring Boot Admin 비활성화
jmx:
enabled: false # JMX 비활성화
main:
application-class: com.todoslave.FeedmeApplication
allow-circular-references: true #뺄지도?
security:
oauth2:
client:
registration:
naver:
client-id: ${NAVER_CLIENT_ID}
client-secret: ${NAVER_CLIENT_SECRET}
client-name: Naver
redirect-uri: https://i11b104.p.ssafy.io/api/login/oauth2/code/naver
authorization-grant-type: authorization_code
scope:
- name
- email
kakao:
client-id: ${KAKAO_CLIENT_ID}
client-secret: ${KAKAO_CLIENT_SECRET}
client-name: Kakao
client-authentication-method: client_secret_post
redirect-uri: https://i11b104.p.ssafy.io/api/login/oauth2/code/kakao
authorization-grant-type: authorization_code
scope:
- profile_nickname
- account_email
provider:
naver:
authorization-uri: https://nid.naver.com/oauth2.0/authorize
token-uri: https://nid.naver.com/oauth2.0/token
user-info-uri: https://openapi.naver.com/v1/nid/me
user-name-attribute: response
kakao:
authorizationUri: https://kauth.kakao.com/oauth/authorize
tokenUri: https://kauth.kakao.com/oauth/token
userInfoUri: https://kapi.kakao.com/v2/user/me
userNameAttribute: id

logging:
level:
org:
hibernate:
SQL: debug
type: trace
datasource:
url: jdbc:mysql://mysql:3306/feedme # MySQL 컨테이너 이름 사용
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver

redis:
host: localhost
port: 6379
data:
mongodb:
host: mongodb # MongoDB 컨테이너 이름 사용
port: 27017
database: feedme
uri: mongodb://mongodb:27017/feedme

redis:
host: redis
port: 6379

jwt:
issuer: todoslave@ssafy.com
secret_key: ${JWT_SECRET_KEY}

jpa:
hibernate:
ddl-auto: update
show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
format_sql: true

logging:
level:
org:
hibernate:
SQL: debug
type: trace

jwt:
issuer: todoslave@ssafy.com
secret_key: ${JWT_SECRET_KEY}

#이건 살림
openai:
model: "gpt-3.5-turbo"
api:
key: ${GPT_SECRET_KEY}
url: "https://api.openai.com/v1/chat/completions"




#spring:
# application:
# name: feedme
# admin:
# enabled: false # Spring Boot Admin 비활성화
# jmx:
# enabled: false # JMX 비활성화
# main:
# application-class: com.todoslave.FeedmeApplication
# allow-circular-references: true #뺄지도?
# security:
# oauth2:
# client:
# registration:
# naver:
# client-id: ${NAVER_CLIENT_ID}
# client-secret: ${NAVER_CLIENT_SECRET}
# client-name: Naver
# redirect-uri: https://i11b104.p.ssafy.io/api/login/oauth2/code/naver
# authorization-grant-type: authorization_code
# scope:
# - name
# - email
# kakao:
# client-id: ${KAKAO_CLIENT_ID}
# client-secret: ${KAKAO_CLIENT_SECRET}
# client-name: Kakao
# client-authentication-method: client_secret_post
# redirect-uri: https://i11b104.p.ssafy.io/api/login/oauth2/code/kakao
# authorization-grant-type: authorization_code
# scope:
# - profile_nickname
# - account_email
# provider:
# naver:
# authorization-uri: https://nid.naver.com/oauth2.0/authorize
# token-uri: https://nid.naver.com/oauth2.0/token
# user-info-uri: https://openapi.naver.com/v1/nid/me
# user-name-attribute: response
# kakao:
# authorizationUri: https://kauth.kakao.com/oauth/authorize
# tokenUri: https://kauth.kakao.com/oauth/token
# userInfoUri: https://kapi.kakao.com/v2/user/me
# userNameAttribute: id
#
# datasource:
# url: jdbc:mysql://mysql:3306/feedme # MySQL 컨테이너 이름 사용
# username: ${DB_USERNAME}
# password: ${DB_PASSWORD}
# driver-class-name: com.mysql.cj.jdbc.Driver
#
# data:
# mongodb:
# host: mongodb # MongoDB 컨테이너 이름 사용
# port: 27017
# database: feedme
# uri: mongodb://mongodb:27017/feedme
#
# redis:
# host: redis
# port: 6379
#
#
# jpa:
# hibernate:
# ddl-auto: update
# show-sql: true
# properties:
# hibernate:
# dialect: org.hibernate.dialect.MySQL8Dialect
# format_sql: true
#
#logging:
# level:
# org:
# hibernate:
# SQL: debug
# type: trace
#
#jwt:
# issuer: todoslave@ssafy.com
# secret_key: ${JWT_SECRET_KEY}
#
#openai:
# model: "gpt-3.5-turbo"
# api:
# key: ${GPT_SECRET_KEY}
# url: "https://api.openai.com/v1/chat/completions"
#
#server:
# port: 8085
model: "gpt-3.5-turbo"
api:
key: ${GPT_SECRET_KEY}
url: "https://api.openai.com/v1/chat/completions"

server:
port: 8085