Skip to content
Snippets Groups Projects
Select Git revision
  • 89ee06810e7f3578c8d86b7bd60625160137523f
  • master default protected
  • decorator-interface
  • v0.1.2 protected
  • v0.1.1 protected
  • v0.1.0 protected
  • v0.0.1.dev6 protected
  • v0.0.1.dev5 protected
  • v0.0.1.dev4 protected
  • v0.0.1.dev3 protected
  • v0.0.1.dev2 protected
  • v0.0.1.dev1 protected
  • v0.0.1.dev0 protected
13 results

dn.py

Blame
  • run.py 568 B
    #!/usr/bin/env python3
    from werkzeug.serving import make_ssl_devcert
    
    from uffd import *
    
    if __name__ == '__main__':
    	app = create_app()
    	init_db(app)
    	print(app.url_map)
    	if not os.path.exists('devcert.crt') or not os.path.exists('devcert.key'):
    		make_ssl_devcert('devcert')
    	# WebAuthn requires https and a hostname (not just an IP address). If you
    	# don't want to test U2F/FIDO2 device registration/authorization, you can
    	# safely remove `host` and `ssl_context`.
    	app.run(threaded=True, debug=True, host='localhost', ssl_context=('devcert.crt', 'devcert.key'))