Skip to content

Commit

Permalink
Merge pull request #14 from kozalosev/integration/user-service
Browse files Browse the repository at this point in the history
Request user-service for language code and location, for registration as well
  • Loading branch information
Leonid Kozarin authored Jan 13, 2024
2 parents e65a54c + 6f8b3bd commit f799f55
Show file tree
Hide file tree
Showing 35 changed files with 2,157 additions and 592 deletions.
16 changes: 16 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,21 @@ REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=r@d1shLPBtg

GRPC_ADDR_USER_SERVICE=user-service:8090
USER_CACHE_TIME_SECS=360
CACHE_CLEAN_UP_INTERVAL_SECS=3600
SEARCH_RADIUS_METERS=1000

REQUESTS_LIMITER_MAX_ALLOWED=10
REQUESTS_LIMITER_TIMEFRAME=60


### envars for user-service

POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=userservicedb
POSTGRES_USER=userservice
POSTGRES_PASSWORD=us4pwd

DATABASE_MAX_CONNECTIONS=10
7 changes: 7 additions & 0 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ jobs:

- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: recursive
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."

- name: Set up Rust
uses: hecrj/setup-rust-action@v1
- run: echo "🖥️ The workflow is now ready to test your code on the runner."

- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: Build
run: cargo build --verbose

Expand All @@ -36,6 +41,8 @@ jobs:

- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: recursive
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."

- name: Build the Docker image
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: recursive
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."

- name: Log in to the Container registry
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "user-service-proto"]
path = user-service-proto
url = https://github.com/Kozalo-Blog/user-service-proto
branch = main
Loading

0 comments on commit f799f55

Please sign in to comment.