def run(info, **kwargs): """Run the development webserver. If no port is set, 8000 or 8443 will be used (depending on whether SSL is enabled or not). Enabling SSL without specifying key and certificate will use a self-signed one. Specifying a custom URL allows you to run the dev server e.g. behind nginx to access it on the standard ports and serve static files much faster. Note that you MUST use `--proxy` when running behind another server; otherwise all requests will be considered to originate from that server's IP which is especially dangerous when using the evalex whitelist with `127.0.0.1` in it. Note that even behind nginx the dev server is NOT SUITABLE for a production setup. """ from indico.cli.devserver import run_cmd if bool(kwargs['ssl_key']) != bool(kwargs['ssl_cert']): raise click.BadParameter('ssl-key and ssl-cert must be used together') run_cmd(info, **kwargs)
def run(info, **kwargs): """Run the development webserver. If no port is set, 8000 or 8443 will be used (depending on whether SSL is enabled or not). Enabling SSL without specifying key and certificate will use a self-signed one. Specifying a custom URL allows you to run the dev server e.g. behind nginx to access it on the standard ports and serve static files much faster. Note that you MUST use `--proxy` when running behind another server; otherwise all requests will be considered to originate from that server's IP which is especially dangerous when using the evalex whitelist with `127.0.0.1` in it. Note that even behind nginx the dev server is NOT SUITABLE for a production setup. """ from indico.cli.devserver import run_cmd if bool(kwargs['ssl_key']) != bool(kwargs['ssl_cert']): raise click.BadParameter('ssl-key and ssl-cert must be used together') run_cmd(info, **kwargs)