From 52fcc0de289ede2a44e7ca47dc65b7a575b48666 Mon Sep 17 00:00:00 2001 From: TuxCoder Date: Sat, 9 May 2020 20:57:16 +0200 Subject: [PATCH] update data folder --- .gitignore | 3 +++ application.cfg | 8 +++++--- data/pki/.gitkeep | 0 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 data/pki/.gitkeep diff --git a/.gitignore b/.gitignore index 8656408..8a71dde 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ /pki signing_key.pem node_modules +/data +/https.crt +/https.key diff --git a/application.cfg b/application.cfg index 59085b9..579d433 100644 --- a/application.cfg +++ b/application.cfg @@ -1,10 +1,11 @@ -SERVER_NAME = 'account.example.com:9090' SECRET_KEY = 'secret_key' SESSION_COOKIE_NAME='pyop_session' SUBJECT_ID_HASH_SALT = 'salt' PREFERRED_URL_SCHEME = 'https' -SQLALCHEMY_DATABASE_URI='sqlite:///./db.sqlite' +DATA_FOLDER = "./data" + +SQLALCHEMY_DATABASE_URI = f'sqlite:///{DATA_FOLDER}db.sqlite' LDAP_URL = 'ldaps://ldap.example.org' LDAP_BASE_DN = 'dc=example,dc=com' @@ -12,8 +13,9 @@ LDAP_BIND_DN = 'cn=admin,' + LDAP_BASE_DN LDAP_BIND_PW = '123456' -PKI_PATH = 'pki' +PKI_PATH = f'{DATA_FOLDER}/pki' DOMAIN = 'example.org' +SERVER_NAME = 'account.{{ DOMAIN }}:9090' LENTICULAR_CLOUD_SERVICES = { diff --git a/data/pki/.gitkeep b/data/pki/.gitkeep new file mode 100644 index 0000000..e69de29