Skip to content

Commit

Permalink
fixes and changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Generate NEU committed Jun 18, 2024
1 parent 96d680c commit e56330a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func Init(db *gorm.DB, stores *store.Stores, integrations integrations.Integrati

publicURL := settings.Application.PublicUrl

msftProvider := msft.New(settings.Microsft.Key, settings.Microsft.Secret, fmt.Sprintf("%s/api/v1/auth/microsoftonline/callback", publicURL), settings.Microsft.Tenant)
msftProvider := msft.New(settings.Microsft.Key, "myapp://auth/callback", settings.Microsft.Tenant)
googProvider := goog.New(settings.Google.Key, settings.Google.Secret, fmt.Sprintf("%s/api/v1/auth/google/callback", publicURL))

authMiddleware := authMiddleware.New(
Expand Down
14 changes: 14 additions & 0 deletions deployment/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ services:
- .env.prod

# REDIS
redis-db-cache:
build:
context: ../backend
dockerfile: ../backend/Dockerfile.redis
container_name: redis_db_cache
ports:
- "6379"
environment:
- REDIS_USERNAME=redis_db_cache
- REDIS_PASSWORD=redis_db_cache!#1
- REDIS_DISABLE_DEFAULT_USER="true"
volumes:
- redis-db-cache-data:/data
redis-session:
build:
context: ../backend
Expand Down Expand Up @@ -54,6 +67,7 @@ services:
volumes:
redis-session-data:
redis-limiter-data:
redis-db-cache-data:
opensearch-data1:
caddy_data:
external: true
Expand Down

0 comments on commit e56330a

Please sign in to comment.