Skip to content

fix: Pass FRONTEND_URL to backend container + remove silent localhost… - #193

Merged
pavshulin merged 1 commit into
mainfrom
slack-fixes
Mar 26, 2026
Merged

pavshulin merged 1 commit into
mainfrom
slack-fixes

Conversation

@pavshulin

Copy link
Copy Markdown
Contributor

… fallback

FRONTEND_URL was not listed in docker-compose.prod.yml environment section, so the .env value never reached the container. OAuth callback redirected to http://localhost even when FRONTEND_URL was configured.

Description

Brief description of changes.

Related Issue

Fixes #(issue number)

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Testing

  • I have tested this locally
  • New tests added (if applicable)
  • All existing tests pass

Checklist

  • My code follows the project's style guidelines
  • I have updated the documentation (if applicable)
  • I have not committed any sensitive data (API keys, credentials, etc.)
  • I have added appropriate logging for new functionality

Screenshots (if applicable)

Add screenshots to help explain your changes.

… fallback

FRONTEND_URL was not listed in docker-compose.prod.yml environment section,
so the .env value never reached the container. OAuth callback redirected to
http://localhost even when FRONTEND_URL was configured.

- docker-compose.prod.yml: add FRONTEND_URL=${FRONTEND_URL:-} to backend env
- config.py: remove http://localhost default (empty string instead)
- slack_service.py: log error when FRONTEND_URL not set instead of silent fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant