Have the admin interface listen on localhost

This commit is contained in:
Pierre Jaury
2016-08-21 15:01:07 +02:00
parent 1b6c514dc5
commit e3197f9156
2 changed files with 9 additions and 3 deletions

View File

@@ -44,6 +44,10 @@ manager.add_command('db', flask_migrate.MigrateCommand)
# Connect to the Docker socket
dockercli = docker.Client(base_url=app.config['DOCKER_SOCKET'])
# Finally setup the blueprint
# Finally setup the blueprint and redirect /
from freeposte import admin
app.register_blueprint(admin.app, url_prefix='/admin')
@app.route("/")
def index():
return flask.redirect(flask.url_for("admin.index"))