diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-06-07 20:05:24 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-06-07 20:05:24 +0200 |
| commit | effcf34153ffd0a40e4604c740a9321f57317156 (patch) | |
| tree | 655dfbf9e7a22d7433f3a105bfac3b2ea0805928 | |
| parent | d75195f51f05e6c9cf11ac22dcdc1406620ec038 (diff) | |
| download | jokevote-effcf34153ffd0a40e4604c740a9321f57317156.tar.gz jokevote-effcf34153ffd0a40e4604c740a9321f57317156.zip | |
lock search engines out
| -rw-r--r-- | app.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -408,10 +408,15 @@ def logout(): page = request.form['redirpage'] return redirect('/page/' + page) +# TODO use nginx for this @app.route('/static/<path:path>') def get_static(path): return send_from_directory('static', path) +@app.route('/robots.txt') +def robotstxt(): + return send_from_directory('static', 'robots.txt') + app.debug = config['debug'] app.secret_key = config['secret_key'] if __name__ == '__main__': |
