Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Temporary Items
*.env
.env*

# Allow environment templates to be committed
!**/example.env

.idea

# dependencies
Expand Down
3 changes: 3 additions & 0 deletions postgres/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POSTGRES_USER=root
POSTGRES_PASSWORD=secret
POSTGRES_DB=sc_db
5 changes: 5 additions & 0 deletions sc-api-getaway/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ENV_TYPE=development
SERVER_PORT=8000
DB_SOURCE=postgresql://root:secret@localhost:5432/sc_db?sslmode=disable
GRPC_AUTH_PORT=localhost:50051
WEBAPP_BASE_URL=http://localhost:3000
3 changes: 3 additions & 0 deletions sc-auth/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ENV_TYPE=development
SERVER_PORT=50051
DB_SOURCE=postgresql://root:secret@localhost:5432/sc_db?sslmode=disable
22 changes: 22 additions & 0 deletions sc-kafka/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
KAFKA_CONFIG_PATH=.
KAFKA_BROKERS=kafka-broker:9092
KAFKA_CLIENT_ID=sc-kafka
KAFKA_DIAL_TIMEOUT=5s
KAFKA_READ_TIMEOUT=10s
KAFKA_WRITE_TIMEOUT=10s
KAFKA_TOPIC_POST_CREATED=post.created
KAFKA_TOPIC_SUBSCRIPTION_CREATED=subscription.created
KAFKA_TOPIC_NOTIFICATION=notification.created
KAFKA_PRODUCER_BATCH_SIZE=100
KAFKA_PRODUCER_BATCH_TIMEOUT=200ms
KAFKA_PRODUCER_AUTO_CREATE_TOPIC=true
KAFKA_CONSUMER_POST_CREATED_GROUP=sc-post-consumers
KAFKA_CONSUMER_SUBSCRIPTION_GROUP=sc-subscription-consumers
KAFKA_CONSUMER_NOTIFICATION_GROUP=sc-notification-consumers
KAFKA_CONSUMER_MIN_BYTES=1
KAFKA_CONSUMER_MAX_BYTES=10485760
KAFKA_CONSUMER_COMMIT_INTERVAL=1s
KAFKA_CONSUMER_HEARTBEAT_INTERVAL=3s
KAFKA_CONSUMER_SESSION_TIMEOUT=30s
KAFKA_USERNAME=
KAFKA_PASSWORD=
7 changes: 7 additions & 0 deletions sc-notification/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ENV_TYPE=development
SERVER_PORT=8080
WEBAPP_BASE_URL=http://localhost:3000
DB_SOURCE=postgresql://root:secret@localhost:5432/sc_db?sslmode=disable
KAFKA_BROKERS=localhost:9092
KAFKA_NOTIFICATIONS_TOPIC=notification.created
KAFKA_GROUP_ID=sc-notification-consumers
6 changes: 6 additions & 0 deletions sc-post/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ENV_TYPE=development
SERVER_PORT=50052
WEBAPP_BASE_URL=http://localhost:3000
DB_SOURCE=postgresql://root:secret@localhost:5432/sc_db?sslmode=disable
KAFKA_BROKERS=localhost:9092
POST_EVENTS_TOPIC=post.created
4 changes: 4 additions & 0 deletions sc-user/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ENV_TYPE=development
SERVER_PORT=50053
WEBAPP_BASE_URL=http://localhost:3000
DB_SOURCE=postgresql://root:secret@localhost:5432/sc_db?sslmode=disable
1 change: 1 addition & 0 deletions sc-webapp/example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_API_URL=http://localhost:8000
Loading