You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/python3#PBR Generated from 'wsgi_scripts'importthreadingfrombarbican.api.appimportget_api_wsgi_scriptif__name__=="__main__":
importargparseimportsocketimportsysimportwsgiref.simple_serveraswssparser=argparse.ArgumentParser(
description=get_api_wsgi_script.__doc__,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
usage='%(prog)s [-h] [--port PORT] [--host IP] -- [passed options]')
parser.add_argument('--port', '-p', type=int, default=8000,
help='TCP port to listen on')
parser.add_argument('--host', '-b', default='',
help='IP to bind the server to')
parser.add_argument('args',
nargs=argparse.REMAINDER,
metavar='-- [passed options]',
help="'--' is the separator of the arguments used ""to start the WSGI server and the arguments passed ""to the WSGI application.")
args=parser.parse_args()
ifargs.args:
ifargs.args[0] =='--':
args.args.pop(0)
else:
parser.error("unrecognized arguments: %s"%' '.join(args.args))
sys.argv[1:] =args.argsserver=wss.make_server(args.host, args.port, get_api_wsgi_script())
print("*"*80)
print("STARTING test server barbican.api.app.get_api_wsgi_script")
url="http://%s:%d/"% (server.server_name, server.server_port)
print("Available at %s"%url)
print("DANGER! For testing only, do not use in production")
print("*"*80)
sys.stdout.flush()
server.serve_forever()
barbican_api container
/var/www/cgi-bin/barbican/main
/var/lib/kolla/config_files/src/etc/httpd/conf.d/10-barbican_wsgi_main.conf
The text was updated successfully, but these errors were encountered: