Skip to content

Can't link with strava #10

Description

@daurpam

I'm using docker compose yaml file to deploy this promising app. But I've got this message:
{"message":"Bad Request","errors":[{"resource":"Application","field":"client_id","code":"invalid"}]}

I've check the url that load after click on link, and it appears that is not correct because the "client_id" parameter is "000000" but not that what I've write down as variable in the environment section of compose file, that expose here:

services:
  workoutchallenge:
    image: vanalmsick/workout_challenge:dev
    container_name: workoutchallenge
    ports:
      - "80:80"
      - "5555:5555" # Celery Flower task monitoring - do not open to public - only for local network for debugging
      - "9001:9001" # Supervisord process monitoring - do not open to public - only for local network for debugging
      - "8000:8000" # Django admin space - do not open to public - only for local network for debugging
    volumes:
      - ./django:/workout_challenge/src-backend/data
    environment:
      - POSTGRES_HOST=workoutchallenge-database
      - POSTGRES_DB=workoutchallenge
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=[redacted]
      - MAIN_HOST=https://[redacted]
      - HOSTS=https://[redacted],http://localhost,http://127.0.0.1
      - ALLOW_ALL_HOSTS=true
      - SECRET_KEY=[redacted]
      - TIME_ZONE=Europe/Madrid
      - STRAVA_CLIENT_ID=[redacted]
      - STRAVA_CLIENT_SECRET=[redacted]
#      - SENTRY_DSN=https://<PUBLIC_KEY>@<HOST>/<PROJECT_ID>
      - EMAIL_HOST=[redacted]
      - EMAIL_PORT=[redacted]
      - EMAIL_HOST_USER=[redacted]
      - EMAIL_HOST_PASSWORD=[redacted]
      - EMAIL_USE_SSL=False
      - EMAIL_USE_TLS=False
      - EMAIL_FROM=[redacted]
      - EMAIL_REPLY_TO=[redacted]
      - OPENAI_API_KEY=
    restart: unless-stopped
    depends_on:
      database:
        condition: service_healthy

  database:
    image: postgres:15
    container_name: workoutchallenge-database
    environment:
      - POSTGRES_DB=workoutchallenge
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=[redacted]
    ports:
      - "5432:5432"
    volumes:
      - ./db:/var/lib/postgresql/data
    restart: unless-stopped
    healthcheck:
      test: [ "CMD-SHELL", "pg_isready -U postgres" ]
      interval: 5s
      timeout: 5s
      retries: 5

Thank you, for your great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions