From fd6ba459f928d110d796cd464b16f47f97dc0f53 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 19 Jan 2020 15:51:47 +0000 Subject: Add Gitlab CI support --- utils/gitlabci/config.cfg | 31 +++++++++++++++++++++++++++++++ utils/gitlabci/config.env | 4 ++++ 2 files changed, 35 insertions(+) create mode 100644 utils/gitlabci/config.cfg create mode 100644 utils/gitlabci/config.env (limited to 'utils/gitlabci') diff --git a/utils/gitlabci/config.cfg b/utils/gitlabci/config.cfg new file mode 100644 index 0000000..b34934f --- /dev/null +++ b/utils/gitlabci/config.cfg @@ -0,0 +1,31 @@ +USER_APP_NAME="Content DB" +SERVER_NAME="localhost:5123" +BASE_URL="http://" + SERVER_NAME + +SECRET_KEY="changeme" +WTF_CSRF_SECRET_KEY="changeme" + +SQLALCHEMY_DATABASE_URI = "postgres://contentdb:password@db:5432/contentdb" + +GITHUB_CLIENT_ID = "" +GITHUB_CLIENT_SECRET = "" + +REDIS_URL='redis://redis:6379' +CELERY_BROKER_URL='redis://redis:6379' +CELERY_RESULT_BACKEND='redis://redis:6379' + +USER_ENABLE_USERNAME = True +USER_ENABLE_REGISTER = False +USER_ENABLE_CHANGE_USERNAME = False +USER_ENABLE_EMAIL = False + +MAIL_UTILS_ERROR_SEND_TO = [""] + +UPLOAD_DIR="/var/cdb/uploads/" +THUMBNAIL_DIR="/var/cdb/thumbnails/" + +TEMPLATES_AUTO_RELOAD = True + +LANGUAGES = { + 'en': 'English', +} diff --git a/utils/gitlabci/config.env b/utils/gitlabci/config.env new file mode 100644 index 0000000..925271c --- /dev/null +++ b/utils/gitlabci/config.env @@ -0,0 +1,4 @@ +POSTGRES_USER=contentdb +POSTGRES_PASSWORD=password +POSTGRES_DB=contentdb +FLASK_DEBUG=1 -- cgit v1.2.3