Skip to content

Instantly share code, notes, and snippets.

@maplethorpej
Last active March 4, 2017 22:05
Show Gist options
  • Save maplethorpej/4177055aa24e2c479b836dd73aaa19e4 to your computer and use it in GitHub Desktop.
Save maplethorpej/4177055aa24e2c479b836dd73aaa19e4 to your computer and use it in GitHub Desktop.
Wildcard route for .well-known SSL verification
# wildcard route for ssl verification
@app.route('/', defaults={'path': ''})
@app.route('/.well-known/<path:path>')
def ssl_cert(path):
return render_template('.well-known/' + path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment