dd14fd202d
* add variables to the documentation forwq oauth2 * remove old reference to ADMINS to get rid of any confusion
141 lines
5.2 KiB
Python
141 lines
5.2 KiB
Python
|
|
# This is just Python which means you can inherit and tweak settings
|
|
|
|
import os
|
|
_basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
THREADS_PER_PAGE = 8
|
|
|
|
# General
|
|
|
|
# These will need to be set to `True` if you are developing locally
|
|
CORS = False
|
|
debug = False
|
|
|
|
TESTING = True
|
|
|
|
# this is the secret key used by flask session management
|
|
SECRET_KEY = 'I/dVhOZNSMZMqrFJa5tWli6VQccOGudKerq3eWPMSzQNmHHVhMAQfQ=='
|
|
|
|
# You should consider storing these separately from your config
|
|
LEMUR_TOKEN_SECRET = 'test'
|
|
LEMUR_ENCRYPTION_KEYS = 'o61sBLNBSGtAckngtNrfVNd8xy8Hp9LBGDstTbMbqCY='
|
|
|
|
# this is a list of domains as regexes that only admins can issue
|
|
LEMUR_RESTRICTED_DOMAINS = []
|
|
|
|
# Mail Server
|
|
|
|
# Lemur currently only supports SES for sending email, this address
|
|
# needs to be verified
|
|
LEMUR_EMAIL = ''
|
|
LEMUR_SECURITY_TEAM_EMAIL = ['security@example.com']
|
|
|
|
LEMUR_HOSTNAME = 'lemur.example.com'
|
|
|
|
# Logging
|
|
|
|
LOG_LEVEL = "DEBUG"
|
|
LOG_FILE = "lemur.log"
|
|
|
|
LEMUR_DEFAULT_COUNTRY = 'US'
|
|
LEMUR_DEFAULT_STATE = 'California'
|
|
LEMUR_DEFAULT_LOCATION = 'Los Gatos'
|
|
LEMUR_DEFAULT_ORGANIZATION = 'Example, Inc.'
|
|
LEMUR_DEFAULT_ORGANIZATIONAL_UNIT = 'Example'
|
|
|
|
LEMUR_ALLOW_WEEKEND_EXPIRATION = False
|
|
|
|
# Database
|
|
|
|
# modify this if you are not using a local database
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql://lemur:lemur@localhost:5432/lemur'
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
|
|
# AWS
|
|
LEMUR_INSTANCE_PROFILE = 'Lemur'
|
|
|
|
# Issuers
|
|
|
|
# These will be dependent on which 3rd party that Lemur is
|
|
# configured to use.
|
|
|
|
# CLOUDCA_URL = ''
|
|
# CLOUDCA_PEM_PATH = ''
|
|
# CLOUDCA_BUNDLE = ''
|
|
|
|
# number of years to issue if not specified
|
|
# CLOUDCA_DEFAULT_VALIDITY = 2
|
|
|
|
|
|
DIGICERT_URL = 'https://www.digicert.com'
|
|
DIGICERT_API_KEY = 'api-key'
|
|
DIGICERT_ORG_ID = 111111
|
|
DIGICERT_ROOT = "ROOT"
|
|
DIGICERT_INTERMEDIATE = "INTERMEDIATE"
|
|
|
|
|
|
VERISIGN_URL = 'http://example.com'
|
|
VERISIGN_PEM_PATH = '~/'
|
|
VERISIGN_FIRST_NAME = 'Jim'
|
|
VERISIGN_LAST_NAME = 'Bob'
|
|
VERSIGN_EMAIL = 'jim@example.com'
|
|
|
|
|
|
ACME_PRIVATE_KEY = '''
|
|
-----BEGIN RSA PRIVATE KEY-----
|
|
MIIJJwIBAAKCAgEA0+jySNCc1i73LwDZEuIdSkZgRYQ4ZQVIioVf38RUhDElxy51
|
|
4gdWZwp8/TDpQ8cVXMj6QhdRpTVLluOz71hdvBAjxXTISRCRlItzizTgBD9CLXRh
|
|
vPLIMPvAJH7JZxp9xW5oVYUcHBveQJ5tQvnP7RgPykejl7DPKm/SGKYealnoGPcP
|
|
U9ipz2xXlVlx7ZKivLbaijh2kD/QE9pC//CnP31g3QFCsxOTLAWtICz5VbvaWuTT
|
|
whqFs5cT3kKYAW/ccPcty573AX/9Y/UZ4+B3wxXY3/6GYPMcINRuu/7Srs3twlNu
|
|
udoTNdM9SztWMYUzz1SMYad9v9LLGTrv+5Tog4YsqMFxyKrBBBz8/bf1lKwyfAW+
|
|
okvVe+1bUY8iSDuDx1O0iMyHe5w8lxsoTy91ujjr1cQDyJR70TKQpeBmfNtBVnW+
|
|
D8E6Xw2yCuL9XTyB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ni9Yy/cg1H6jZD9HY8UuybH7yT6F2n
|
|
8uZIYIloDJksYsifNyfvd3mQbLgb4vPEVnS2z4hoGYgdfJUuvLeng0MfeWOEvroV
|
|
J6GRB1wjOP+vh0O3YawR+UEN1c1Iksl5JxijWLCOxv97+nfUFiCJw19QjcPFFY9f
|
|
rKLFmvniJ/IS7GydjQFDgPLw+/Zf8IuCy9TPrImJ32zfKDP11R1l3sy2v9EfF+0q
|
|
dxbTNB6A9i9jzUYjeyS3lqkfyjS1Gc+5lbAonQq5APA6WsWbAxO6leL4Y4PC2ir8
|
|
XE20qsHrKADgfLCXBmYb2XYbkb3ZalsCggEAfOuB9/eLMSmtney3vDdZNF8fvEad
|
|
DF+8ss8yITNQQuC0nGdXioRuvSyejOxtjHplMT5GXsgLp1vAujDQmGTv/jK+EXsU
|
|
cRe4df5/EbRiUOyx/ZBepttB1meTnsH6cGPN0JnmTMQHQvanL3jjtjrC13408ONK
|
|
1yK2S4xJjKYFLT86SjKvV6g5k49ntLYk59nviqHl8bYzAVMoEjb62Z+hERwd/2hx
|
|
omsEEjDt4qVqGvSyy+V/1EhqGPzm9ri3zapnorf69rscuXYYsMBZ8M6AtSio4ldB
|
|
LjCRNS1lR6/mV8AqUNR9Kn2NLQyJ76yDoEVLulKZqGUsC9STN4oGJLUeFw==
|
|
-----END RSA PRIVATE KEY-----
|
|
'''
|
|
ACME_URL = 'https://acme-v01.api.letsencrypt.org'
|
|
ACME_EMAIL = 'jim@example.com'
|
|
ACME_TEL = '4088675309'
|