diff --git a/ennstatus/__init__.py b/ennstatus/__init__.py --- a/ennstatus/__init__.py +++ b/ennstatus/__init__.py @@ -1,26 +1,28 @@ from flask import Flask from flask_bootstrap import Bootstrap from flask.ext.compress import Compress -from flask_sslify import SSLify +#from flask_sslify import SSLify from ennstatus.log import init_logging app = Flask(__name__) -app.config.from_object('config') +app.config.from_envvar('ENNSTATUS_SETTINGS') Bootstrap(app) Compress(app) -SSLify(app, permanent=True) +#SSLify(app, permanent=True) from ennstatus.views import root_page from ennstatus.api.views import api_page from ennstatus.donate.views import donate_page from ennstatus.status.views import status_page +from ennstatus.stats.views import stats_page app.register_blueprint(root_page) app.register_blueprint(api_page, url_prefix='/api') app.register_blueprint(donate_page, url_prefix='/donate') app.register_blueprint(status_page, url_prefix='/status') +app.register_blueprint(stats_page, url_prefix='/stats') init_logging(app) diff --git a/ennstatus/templates/base.html b/ennstatus/templates/base.html --- a/ennstatus/templates/base.html +++ b/ennstatus/templates/base.html @@ -74,7 +74,7 @@
Anonymity is one of our last best hopes and possibilities to protect our fundamental rights as citizens of this world. As the Internet is the most important entity these societies have ever seen, its very powerful as well. With a lot of power comes a lot of responsibility. Some governments, corporations and people try to undermine our rights by trying to prohibit us the right of anonymity under the pretending of the most social engineered sentence of our modern society: "If you have nothing to hide, surveillance won't disturb you."