Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
d0ce30c1
Unverified
Commit
d0ce30c1
authored
Sep 18, 2018
by
Peter Stanko
Browse files
Portal local should not be versioned
parent
363af840
Pipeline
#13210
passed with stage
in 23 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
portal.local.cfg
deleted
100644 → 0
View file @
363af840
import datetime
import os
ROOT_DIR=os.path.dirname(os.path.realpath(__file__))
#
# Gitlab specific configuration
#
# Gitlab base url
GITLAB_URL = "https://gitlab.fi.muni.cz/"
# Gitlab Client ID
GITLAB_CLIENT_ID = "12346"
# Gitlab Client Secret
GITLAB_CLIENT_SECRET = "123456"
# Redirect url after received the gitlab token
FRONTEND_URL = "http://kontr.pstanko.net/gitlabLogin"
#
# STORAGE
#
# Base location for kontr storage
#PORTAL_STORAGE_BASE_DIR = "e:/portal/storage"
# Location where test files should be stored
#PORTAL_STORAGE_TEST_FILES_DIR = f"{PORTAL_STORAGE_BASE_DIR}/test-files"
# Location where workspace is stored
#PORTAL_STORAGE_WORKSPACE_DIR = f"{PORTAL_STORAGE_BASE_DIR}/workspace"
# Location where submissions should be stored
#PORTAL_STORAGE_SUBMISSIONS_DIR = f"{PORTAL_STORAGE_BASE_DIR}/submissions"
#
# DATABASE
#
# for more info: http://flask-sqlalchemy.pocoo.org/2.3/config/
# URI to connect to the database
# if 'sqlite://' - the in memory database will be used
#SQLALCHEMY_DATABASE_URI = f"sqlite:////{ROOT_DIR}/devel.db"
SQLALCHEMY_DATABASE_URI = "postgresql://postgres:postgres@localhost:5432/postgres"
#SQLALCHEMY_ECHO=False
#SQLALCHEMY_RECORD_QUERIES
#
# CELERY
# Config variabled: http://docs.celeryproject.org/en/latest/userguide/configuration.html
# CELERY_RESULT_BACKEND
# BROKER_URL
#
# JWT
#
# for more info: http://flask-jwt-extended.readthedocs.io/en/latest/refresh_tokens.html
JWT_SECRET_KEY = "RANDOM-KEY-123456"
#JWT_REFRESH_TOKEN_EXPIRES = datetime.timedelta(days=30)
#JWT_ACCESS_TOKEN_EXPIRES = datetime.timedelta(hours=1)
# JWT_VERIFY=True
#
# FLASK
#
SECRET_KEY = "RANDOM-KEY-123456"
#
# CORS
# Documetation: https://github.com/corydolphin/flask-cors
#
# CORS_ORIGINS= '*'
# CORS_METHODS
# CORS_ALLOW_HEADERS
# CORS_EXPOSE_HEADERS
# CORS_SUPPORTS_CREDENTIALS
# CORS_MAX_AGE
# CORS_SEND_WILDCARD
# CORS_AUTOMATIC_OPTIONS
# CORS_VARY_HEADER
# CORS_RESOURCES
# CORS_INTERCEPT_EXCEPTIONS
# CORS_ALWAYS_SEND
#
#
# Emails specific configuration
#
# for more info https://github.com/lavr/flask-emails
EMAIL_HOST = "localhost"
EMAIL_PORT = "1025"
EMAIL_DEFAULT_FROM = "kontr@example.com"
EMAIL_HOST_USER = None
EMAIL_HOST_PASSWORD = None
EMAIL_USE_TLS = False
EMAIL_USE_SSL = False
EMAIL_SSL_CERTFILE = None
EMAIL_SSL_KEYFILE= None
EMAIL_TIMEOUT=30
EMAIL_SMTP_DEBUG=0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment