Skip to content

Latest commit

ย 

History

History
79 lines (61 loc) ยท 1.39 KB

2.env_setting.md

File metadata and controls

79 lines (61 loc) ยท 1.39 KB

๐ŸŒฝ CORNS ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์„ธํŒ…

Backend

  • application.properties
# MySQL
spring
.datasource
		.driver-class-name =com.mysql.cj.jdbc.Driver
		.url=DB source url
		.username =๊ณ„์ •์ด๋ฆ„
		password =๋น„๋ฐ€๋ฒˆํ˜ธ

# Redis
spring
	.cache.type=redis
	.redis
		.host=ํ˜ธ์ŠคํŠธ์ฃผ์†Œ
		.password=๋น„๋ฐ€๋ฒˆํ˜ธ
		.port=ํฌํŠธ๋ฒˆํ˜ธ

# Jpa
spring.jpa
	.show_sql=true
		.properties
.hibernate
.show_sql=true
			     	.format_sql=true
				.globally_quoted_identifiers=true
		.hibernate.ddl-auto=ddl์ž๋™์˜ต์…˜

#port
server.port=ํฌํŠธ๋ฒˆํ˜ธ

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

#JWT
jwt.secret=jwt sercret ์ •๋ณด

#file upload
upload.path=ํŒŒ์ผ์—…๋กœ๋“œ์ฃผ์†Œ
domain.save.path=ํŒŒ์ผ์ €์žฅ๋„๋ฉ”์ธ์ฃผ์†Œ

#logging setting
logging.level.com.w6w.corns.controller=debug

#oauth
spring.profiles.include=oauth

# papago key
papago.clientId=ํด๋ผ์ด์–ธํŠธ์•„์ด๋””
papago.clientSecret=ํด๋ผ์ด์–ธํŠธ์‹œํฌ๋ฆฟ
  • application-oauth.properties
#google login
OAuth2
	.google
		.client-id=ํด๋ผ์ด์–ธํŠธ์•„์ด๋””
		.client-secret=ํด๋ผ์ด์–ธํŠธ์‹œํฌ๋ฆฟ
		.callback-url=callback url

Frontend

  • .env
REACT_APP_GOOGLE_CLIENT_ID = ํด๋ผ์ด์–ธํŠธ ์•„์ด๋””
REACT_APP_GOOGLE_REDIRECT_URI = redirect uri
REACT_APP_GOOGLE_SCOPE = "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"

REACT_APP_HOST = api ์š”์ฒญํ•  ๋ฐฑ ์ฃผ์†Œ