Skip to content

Commit

Permalink
env example readme
Browse files Browse the repository at this point in the history
  • Loading branch information
donghquinn committed Mar 5, 2024
1 parent 2454430 commit 9544f30
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,33 @@
<img src="images/erd_news.png"/>
<em>E-R Diagram</em>

## 환경변수 설정

각각 서비스 구동에 필요한 환경변수와 db에 사용할 환경변수를 작성한다.

- .env
- APP_PORT=
- DATABASE_URL="postgresql://user:password@DB_SERVER_IP:DB_PORT/DB_NAME?schema=public"

- SESSION_SECRET=
- SECRET_KEY=
- AUTH_KEY=

- REDIS_HOST="redis://user:password@redis_server:port"
- REDIS_PORT=
- REDIS_TIMEOUT=

- REDIS_USER=
- REDIS_PASS=

- GMAIL_USER=
- GMAIL_PASSWORD=

- .postgres.env
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=DB_NAME

---

--- Legacy ---
Expand Down Expand Up @@ -78,20 +105,6 @@
yarn run db:update
```

## 환경변수 설정

각각 서비스 구동에 필요한 환경변수와 db에 사용할 환경변수를 작성한다.

- .env
- APP_PORT=
- DATABASE_URL="postgresql://user:password@DB_SERVER_IP:DB_PORT/DB_NAME?schema=public"
- SESSION_SECRET=
- AUTH_KEY=

- .postgres.env
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=DB_NAME

## 구동

Expand Down

0 comments on commit 9544f30

Please sign in to comment.