hidden url config

This commit is contained in:
Xevion
2019-06-30 04:29:35 -05:00
parent 2965a1298e
commit f7681428a0
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
key
/app.db
/key
/hidden
/migrations/*
/venv/*
/app/__pycache__/*

View File

@@ -89,7 +89,7 @@ def boolparse(string, default=False):
else:
return False
@app.route(hidden_value)
@app.route(app.config['HIDDEN_URL'])
@login_required
def hidden():
# Handled within request

View File

@@ -1,10 +1,14 @@
import os
basedir = os.path.abspath(os.path.dirname(__file__))
with open('hidden', 'r') as hidden:
hidden = hidden.read()
with open('key', 'r') as key:
key = key.read()
class Config(object):
HIDDEN_URL = hidden
SECRET_KEY = os.environ.get('SECRET_KEY') or key
TEMPLATES_AUTO_RELOAD=True
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \