-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
809a83e
commit ce439d7
Showing
11 changed files
with
41 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,3 @@ | ||
from dotenv import load_dotenv | ||
from os import getenv | ||
|
||
load_dotenv() | ||
|
||
SECRET_KEY = getenv('SECRET_KEY') | ||
|
||
DEFAULT_PRICE = int(getenv('PRICE_PER_CONTENT')) | ||
|
||
DATABASE_LOCATION = 'sqlite:///data/db.sqlite3' | ||
|
||
SESSION_LIFETIME = int(getenv('SESSION_LIFETIME')) | ||
|
||
URL = getenv('URL') | ||
|
||
DEFAULT_IOTA_ADDRESS= getenv('DEFAULT_IOTA_ADDRESS') | ||
|
||
AUTHOR_ADDRESSES= getenv('AUTHOR_ADDRESSES') == 'true' | ||
|
||
NODE_URL = getenv('NODE_URL') | ||
|
||
GHOST_ADMIN_KEY = getenv('GHOST_ADMIN_KEY') | ||
|
||
ADMIN_PANEL = getenv('ADMIN_PANEL') == 'true' | ||
|
||
ADMIN_USER = getenv('ADMIN_USER') | ||
|
||
ADMIN_PW = getenv('ADMIN_PW') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from os import getenv | ||
from distutils.util import strtobool | ||
|
||
SECRET_KEY = getenv('SECRET_KEY', None) | ||
|
||
SQLALCHEMY_DATABASE_URI = getenv('SQLALCHEMY_DATABASE_URI', 'sqlite:///data/db.sqlite3') | ||
|
||
SQLALCHEMY_TRACK_MODIFICATIONS = bool(strtobool(getenv('SQLALCHEMY_TRACK_MODIFICATIONS', 'false'))) | ||
|
||
BASIC_AUTH_USERNAME = getenv('ADMIN_USER', 'admin') | ||
|
||
BASIC_AUTH_PASSWORD = getenv('ADMIN_PW', 'admin') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from os import getenv | ||
from distutils.util import strtobool | ||
|
||
SESSION_LIFETIME = int(getenv('SESSION_LIFETIME', 24)) | ||
|
||
URL = getenv('URL', 'http://localhost:2368') | ||
|
||
DEFAULT_IOTA_ADDRESS= getenv('DEFAULT_IOTA_ADDRESS', 'NO ADDRESS GIVEN') | ||
|
||
DEFAULT_PRICE = int(getenv('PRICE_PER_CONTENT', 1000000)) | ||
|
||
AUTHOR_ADDRESSES= bool(strtobool(getenv('AUTHOR_ADDRESSES', 'false'))) | ||
|
||
NODE_URL = getenv('NODE_URL', 'https://api.hornet-1.testnet.chrysalis2.com') | ||
|
||
GHOST_ADMIN_KEY = getenv('GHOST_ADMIN_KEY') | ||
|
||
ADMIN_PANEL = bool(strtobool(getenv('ADMIN_PANEL', 'false'))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters