Skip to content

Commit

Permalink
bayanat v1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
sjacgit committed Aug 2, 2021
1 parent 568094a commit 9b7e219
Show file tree
Hide file tree
Showing 66 changed files with 5,622 additions and 2,642 deletions.
30 changes: 21 additions & 9 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Bayanat
FLASK_APP=run.py
FLASK_DEBUG=0
SECRET_KEY=''
FLASK_APP = run.py
FLASK_DEBUG = 0
SQLALCHEMY_DATABASE_URI = 'postgresql://user:password@host/db'

FILESYSTEM_LOCAL = True
ETL_TOOL = True
MISSING_PERSONS = False

# Secrets
SECRET_KEY = ''
SECURITY_PASSWORD_SALT = ''

# 2FA
Expand All @@ -22,17 +28,23 @@ MAIL_PASSWORD = ''
SECURITY_EMAIL_SENDER = ''

# Recaptcha
RECAPTCHA_ENABLED = False
RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY = ''

# Google Oauth
GOOGLE_CLIENT_ID = ''
GOOGLE_CLIENT_SECRET = ''

# Deduplication
DEDUP_LOW_DISTANCE = 0.3
DEDUP_MAX_DISTANCE = 0.5
DEDUP_BATCH_SIZE = 30

# Docker
COMPOSE_PROJECT_NAME=bayanat
POSTGRES_USER=enferno
POSTGRES_PASSWORD=verystrongpass
POSTGRES_DB=enferno
REDIS_PASS=verystrongpass
PYTHONUNBUFFERED=true
COMPOSE_PROJECT_NAME = bayanat
POSTGRES_USER = enferno
POSTGRES_PASSWORD = verystrongpass
POSTGRES_DB = enferno
REDIS_PASS = verystrongpass
PYTHONUNBUFFERED = true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ flask_session
celerybeat-schedule.db
.env
enferno/media/*
.log
*.log
*.csv
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ RUN echo 'alias ee="export FLASK_APP=run.py && export FLASK_DEBUG=0"' >> ~/.bash
CMD [ "uwsgi", "--http", "0.0.0.0:5000", \
"--protocol", "uwsgi", \
"--wsgi", "run:app" ]

0 comments on commit 9b7e219

Please sign in to comment.