Skip to content

Commit

Permalink
Merge pull request #3 from kindredgroup/feature/refactor
Browse files Browse the repository at this point in the history
Feature/refactor
  • Loading branch information
akaur13 committed Jul 14, 2023
2 parents 69cdc20 + 60a4ae7 commit 4f20f47
Show file tree
Hide file tree
Showing 39 changed files with 1,879 additions and 1,187 deletions.
31 changes: 31 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# WHEN DEVELOPING LOCALLY, WE NEED TO ACCESS THE HOST NETWORK FROM K8S (FOR POSTGRES/KAFKA/ELASTIC/ETC)
# LOCAL_HOST_IP=$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}')

# RUST version
RUST_VERSION=stable

# KAFKA
# KAFKA_BROKERS="localhost:9093\,$LOCAL_HOST_IP:9094"
KAFKA_BROKERS="localhost:9092"
KAFKA_CLIENT_ID="chronos"
KAFKA_GROUP_ID="chronos"
KAFKA_IN_TOPIC="chronos.in"
KAFKA_OUT_TOPIC="chronos.out"
KAFKA_USERNAME=
KAFKA_PASSWORD=

# POSTGRES
# NB: `node-postgres` AND `node-pg-migrate` USE THE SAME ENVIRONMENT VARIABLES AS `libpq` TO CONNECT TO A POSTGRESQL SERVER
# NODE_PG_FORCE_NATIVE=1
PG_HOST=localhost
PG_PORT=5432
PG_USER=postgres
PG_PASSWORD=admin
PG_DATABASE=chronos
PG_POOL_SIZE=50
ADMIN_PG_USER=postgres
ADMIN_PG_PASSWORD=admin
ADMIN_PG_DATABASE=postgres

# CONFIG
RUST_LOG=info
31 changes: 31 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# WHEN DEVELOPING LOCALLY, WE NEED TO ACCESS THE HOST NETWORK FROM K8S (FOR POSTGRES/KAFKA/ELASTIC/ETC)
LOCAL_HOST_IP=$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}')

# RUST version
RUST_VERSION=stable

# KAFKA
# KAFKA_BROKERS="localhost:9093\,$LOCAL_HOST_IP:9094"
KAFKA_BROKERS="localhost:9093"
KAFKA_CLIENT_ID="chronos"
KAFKA_GROUP_ID="chronos"
KAFKA_IN_TOPIC="chronos.in"
KAFKA_OUT_TOPIC="chronos.out"
KAFKA_USERNAME=
KAFKA_PASSWORD=

# POSTGRES
# NB: `node-postgres` AND `node-pg-migrate` USE THE SAME ENVIRONMENT VARIABLES AS `libpq` TO CONNECT TO A POSTGRESQL SERVER
# NODE_PG_FORCE_NATIVE=1
PG_HOST=$LOCAL_HOST_IP
PG_PORT=5432
PG_USER=admin
PG_PASSWORD=admin
PG_DATABASE=talos_certifier
PG_POOL_SIZE=50
ADMIN_PG_USER=admin
ADMIN_PG_PASSWORD=admin
ADMIN_PG_DATABASE=postgres

# CONFIG
RUST_LOG=debug
Loading

0 comments on commit 4f20f47

Please sign in to comment.