mirror of
https://github.com/workhardbekind/workout-challenge.git
synced 2026-07-04 09:23:32 -04:00
fixes for security
This commit is contained in:
parent
ddf726315e
commit
7caf7c7e93
2 changed files with 7 additions and 31 deletions
|
|
@ -2,36 +2,16 @@ version: '3.9'
|
|||
|
||||
services:
|
||||
workoutchallenge:
|
||||
image: workhardbekind/workout_challenge
|
||||
container_name: workoutchallenge
|
||||
build: .
|
||||
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_data:/workout_challenge/src-backend/data
|
||||
environment:
|
||||
- POSTGRES_HOST=workoutchallenge-database
|
||||
- POSTGRES_DB=workoutchallenge
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=password
|
||||
- MAIN_HOST=http://your-url.com
|
||||
- HOSTS=http://your-url.com,http://localhost,http://127.0.0.1
|
||||
- SECRET_KEY=<your_random_string_for_encryption>
|
||||
- TIME_ZONE=Europe/London
|
||||
- STRAVA_CLIENT_ID=000000
|
||||
- STRAVA_CLIENT_SECRET=<secret_key>
|
||||
- REACT_APP_SENTRY_DSN=https://<PUBLIC_KEY>@<HOST>/<PROJECT_ID>
|
||||
- EMAIL_HOST=smtp.gmail.com
|
||||
- EMAIL_PORT=465
|
||||
- EMAIL_HOST_USER=competition@yourdomain.com
|
||||
- EMAIL_HOST_PASSWORD=password
|
||||
- EMAIL_USE_SSL=True
|
||||
- EMAIL_USE_TLS=False
|
||||
- EMAIL_FROM=competition@yourdomain.com
|
||||
- EMAIL_REPLY_TO=support@yourdomain.com
|
||||
- OPENAI_API_KEY=<secret_key>
|
||||
- /usr/pi/workout_challenge/django:/workout_challenge/src-backend/data
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
database:
|
||||
|
|
@ -45,16 +25,12 @@ services:
|
|||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=password
|
||||
ports:
|
||||
- "5432:5432"
|
||||
- "5434:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- /home/dave/workout/db:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
django_data:
|
||||
retries: 5
|
||||
|
|
@ -25,7 +25,7 @@ export function InitStravaLink() {
|
|||
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||
};
|
||||
|
||||
const urlSecondPart = 'client_id=156364&response_type=code&approval_prompt=force&scope=profile:read_all,activity:read_all&redirect_uri=' + encodedBaseUrl;
|
||||
const urlSecondPart = 'client_id=178748&response_type=code&approval_prompt=force&scope=profile:read_all,activity:read_all&redirect_uri=' + encodedBaseUrl;
|
||||
let urlFirstPart = '';
|
||||
|
||||
if (isIOS()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue