示例#1
0
"""
config
======

"""
import typing

import tanker.config
from tanker.config import fields

SCHEMA = {
    #: Running environment
    'ENVIRONMENT': fields.OneOfField({
        'local',
        'test',
        'development',
        'production',
    }, default='local'),
    #: Debug
    'DEBUG': fields.BooleanField(optional=True),
    #: SQLAlchemy URI
    'SQLALCHEMY_DATABASE_URI': fields.StringField(optional=True),
    #: AWS sepecific access key id value
    "AWS_ACCESS_KEY_ID": fields.StringField(optional=True),
    #: AWS sepecific secret access key value
    "AWS_SECRET_ACCESS_KEY": fields.StringField(optional=True),
    #: AWS sepecific region name value
    "AWS_REGION_NAME": fields.StringField(optional=True),
    #: AWS sepecific endpoint url value
    "AWS_ENDPOINT_URL": fields.StringField(optional=True),
    #: AWS sepecific endpoint url value
示例#2
0
config
======

"""
import tanker.config
import typing
from tanker.config import fields

SCHEMA = {
    #: Running environment
    "ENVIRONMENT":
    fields.OneOfField(
        {
            "local",
            "test",
            "development",
            "production",
        },
        default="local",
    ),
    #: Debug
    "DEBUG":
    fields.BooleanField(optional=True),
    #: Running environment
    "PROXY_HOST_LIST":
    fields.CommaSeparatedStringField(optional=False),
    #: AWS sepecific access key id value
    "AWS_ACCESS_KEY_ID":
    fields.StringField(optional=True),
    #: AWS sepecific secret access key value
    "AWS_SECRET_ACCESS_KEY":