Skip to content
Snippets Groups Projects
Select Git revision
  • 4c895b81c885e59e3486a3ccda0a2d78ab0a9572
  • main default protected
  • 75389691-a67c-422a-91e9-aa58bfb5-main-patch-32205
  • test-pipe
  • extended-scripts
  • structured-badges
  • guix-pipeline
  • cabal-pipeline
8 results

CheckDir.hs

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'))