-
Notifications
You must be signed in to change notification settings - Fork 0
환경변수
백승주 edited this page Mar 29, 2023
·
1 revision
#DB config
DB_NAME=bshop_db
DB_URL=jdbc:mysql://localhost:3306/bshop_db?allowPublicKeyRetrieval=true&useSSL=false
DB_USERNAME=root
DB_PASSWORD=1234
DB_PORT=3306
DDL_AUTO=create
FETCH_SIZE=100
#Redis config
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=redis1234
#Minio connection info
MINIO_USER=minio
MINIO_PASSWORD=minio1234
MINIO_BUCKET=images
MINIO_PORT=9000
MINIO_WEB_PORT=9001
MINIO_ENDPOINT=http://localhost:9000
MINIO_NO_IMAGE_URL=http://localhost:9000/images/No_Image.jpg
MINIO_PREFIX=http://localhost:9000/images
#Token config
TOKEN_SECRET=localSecretKey123456789876543210
REFRESH_EXPIRED_TIME=1209600000
ACCESS_EXPIRED_TIME=3600000
#Spring Server config
SERVER_PORT=8080
PROD_DOMAIN=https://b-shop.com
PROD_URL=https://139.150.73.182
LOCAL_DOMAIN=http://b-shop.com
ACTIVE_PROFILE=local
#hiworks connection info
CLIENT_ID=g9weeb6q1rsgirhtgcxsmyj4wt7ktcer6045c8d8d357e7.34276869.open.apps
CLIENT_SECRET=9a1n7i7p1qz8ih2knpy3jgrpcbcedbyf
ACCESS_TOKEN_URL=https://api.hiworks.com/open/auth/accesstoken
USER_URL=https://api.hiworks.com/user/v2/me
#Cart expired time
CART_EXPIRED_TIME=86400000
- 😄 NEW
server:
port: ${SERVER_PORT}
spring:
profiles:
active: ${ACTIVE_PROFILE}
datasource:
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
jpa:
hibernate:
ddl-auto: ${DDL_AUTO}
properties:
hibernate:
hibernate.default_batch_fetch_size: ${FETCH_SIZE}
jakarta:
persistence:
sharedCache:
mode: ALL
open-in-view: false
data:
redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
---
server:
local:
domain: ${LOCAL_DOMAIN}
prod:
domain: ${PROD_DOMAIN}
url: ${PROD_URL}
hiworks:
client:
id: ${CLIENT_ID}
secret: ${CLIENT_SECRET}
url:
accessToken: ${ACCESS_TOKEN_URL}
user: ${USER_URL}
token:
access-expired-time: ${ACCESS_EXPIRED_TIME}
refresh-expired-time: ${REFRESH_EXPIRED_TIME}
secret: ${TOKEN_SECRET}
minio:
endpoint: ${MINIO_ENDPOINT}
prefix: ${MINIO_PREFIX}
user: ${MINIO_USER}
password: ${MINIO_PASSWORD}
bucket: ${MINIO_BUCKET}
default:
image: ${MINIO_NO_IMAGE_URL}
sentry:
dsn: ${SENTRY_DSN}
exception-resolver-order: -2147483647
traces-sample-rate: 1.0
logging:
level:
org:
hibernate:
SQL: ${LOG_LEVEL}
- 😪 OLD
server:
port: ${SERVER_PORT}
spring:
profiles:
active: ${ACTIVE_PROFILE}
datasource:
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
jpa:
hibernate:
ddl-auto: ${DDL_AUTO}
properties:
hibernate:
hibernate.default_batch_fetch_size: ${FETCH_SIZE}
jakarta:
persistence:
sharedCache:
mode: ALL
open-in-view: false
data:
redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
---
server:
local:
domain: ${LOCAL_DOMAIN}
prod:
domain: ${PROD_DOMAIN}
url: ${PROD_URL}
default:
profile-image-url: ${PROFILE_IMAGE_URL}
item-image-url: ${ITEM_IMAGE_URL}
cart:
expired-time: ${CART_EXPIRED_TIME}
hiworks:
client:
id: ${CLIENT_ID}
secret: ${CLIENT_SECRET}
url:
accessToken: ${ACCESS_TOKEN_URL}
user: ${USER_URL}
token:
access-expired-time: ${ACCESS_EXPIRED_TIME}
refresh-expired-time: ${REFRESH_EXPIRED_TIME}
secret: ${TOKEN_SECRET}
minio:
endpoint: ${MINIO_ENDPOINT}
user: ${MINIO_USER}
password: ${MINIO_PASSWORD}
bucket: ${MINIO_BUCKET}
shedlock:
table: shedlock
sentry:
dsn: ${SENTRY_DSN}
exception-resolver-order: -2147483647
traces-sample-rate: 1.0
logging:
level:
org:
hibernate:
SQL: ${LOG_LEVEL}
- 😁 NEW
ACCESS_EXPIRED_TIME=360000;ACCESS_TOKEN_URL=https://api.hiworks.com/open/auth/accesstoken;ACTIVE_PROFILE=prod;CART_EXPIRED_TIME=86400000;CLIENT_ID=g9weeb6q1rsgirhtgcxsmyj4wt7ktcer6045c8d8d357e7.34276869.open.apps;CLIENT_SECRET=9a1n7i7p1qz8ih2knpy3jgrpcbcedbyf;DB_PASSWORD=1234;DB_URL=jdbc:mysql://localhost:3306/bshop_db;DB_USERNAME=root;DDL_AUTO=create-drop;FETCH_SIZE=100;ITEM_IMAGE_URL=http://139.150.73.182:9000/images/no-item-image.png;LOCAL_DOMAIN=http://b-shop.com;LOG_LEVEL=debug ;MINIO_BUCKET=images;MINIO_ENDPOINT=http://localhost:9000;MINIO_PASSWORD=minio1234;MINIO_PREFIX=http://localhost:9000/images;MINIO_USER=minio;PROD_DOMAIN=https://b-shop.com;PROD_URL=http://139.150.73.182;PROFILE_IMAGE_URL=https://gabiaoffice.hiworks.com/gabia.com/common/profile/me;REDIS_HOST=127.0.0.1;REDIS_PORT=6379;REFRESH_EXPIRED_TIME=1209600000;SENTRY_DSN=https://9d32793e4a0841c2b8b3121f72743fa6@o4504705595015168.ingest.sentry.io/4504705598226432;SERVER_PORT=8080;TOKEN_SECRET=localSecretKey123456789876543210;USER_URL=https://api.hiworks.com/user/v2/me;REDIS_PASSWORD=1234
- 😴 OLD
ACCESS_EXPIRED_TIME=360000;ACCESS_TOKEN_URL=https://api.hiworks.com/open/auth/accesstoken;ACTIVE_PROFILE=prod;CART_EXPIRED_TIME=86400000;CLIENT_ID=g9weeb6q1rsgirhtgcxsmyj4wt7ktcer6045c8d8d357e7.34276869.open.apps;CLIENT_SECRET=9a1n7i7p1qz8ih2knpy3jgrpcbcedbyf;DB_PASSWORD=1234;DB_URL=jdbc:mysql://localhost:3306/bshop_db;DB_USERNAME=root;DDL_AUTO=create-drop;FETCH_SIZE=100;ITEM_IMAGE_URL=http://139.150.73.182:9000/images/no-item-image.png;LOCAL_DOMAIN=http://b-shop.com;LOG_LEVEL=debug ;MINIO_BUCKET=images;MINIO_ENDPOINT=http://localhost:9000;MINIO_PASSWORD=minio1234;MINIO_USER=minio;PROD_DOMAIN=https://b-shop.com;PROD_URL=http://139.150.73.182;PROFILE_IMAGE_URL=https://gabiaoffice.hiworks.com/gabia.com/common/profile/me;REDIS_HOST=127.0.0.1;REDIS_PORT=6379;REFRESH_EXPIRED_TIME=1209600000;SENTRY_DSN=https://9d32793e4a0841c2b8b3121f72743fa6@o4504705595015168.ingest.sentry.io/4504705598226432;SERVER_PORT=8080;TOKEN_SECRET=localSecretKey123456789876543210;USER_URL=https://api.hiworks.com/user/v2/me;
🏷️ 설계 문서
📚 팀 컨벤션
- Issue 작성 가이드
- Merge Request 작성 가이드
- Git 브랜치 전략
- Commit 컨벤션
- 백엔드 코드 컨벤션
- 객체 및 메서드생성 규칙
- Ground Rule
- Request Response 규칙
🔧 Setting
✍ 스프린트 기록