Skip to content

Latest commit

 

History

History
executable file
·
40 lines (26 loc) · 2.39 KB

webserver.md

File metadata and controls

executable file
·
40 lines (26 loc) · 2.39 KB

Web server configuration

  • Spontini-Editor provides a built-in Uvicorn web server which is automatically launched by the SpontiniServer.py script. By default, the uvicorn web server is launched, and its parameters (port, host, certificates etc.) can be changed by modifying the uvicorn_cli.txt file.

    uvicorn_cli.txt uses the interface provided by Uvicorn: therefore you have to refer to the documentation of the two tools for setting the parameters you need.

  • If you want to run the web server in text-only mode (no tkinter GUI) launch it with the "nogui" parameter (in case of Windows, use the SpontiniServer.exe executable)

    SpontiniServer nogui
    
  • You can enable HTTPS(SSL), after creating cert.pem and key.pem certificates by uncommenting the #"ssl_keyfile":"key.pem" and #"ssl_certfile":"cert.pem" lines in uvicorn_cli.txt

    Self-signed certificates can be created with OpenSSL and, if using the above CLI, they must be put inside the base directory of the Spontini directory tree.

    Note too that if your private key has a passphrase, then you can't run Spontini-Server unless you supply it with the passphrase each time it restarts.

  • Finally: you can run the Spontini web server (spontini_server_core.py) from any other ASGI container than Uvicorn. Try it yourself, for example, with Daphne - which is good for a production context and which requires a little effort to be installed on Windows - by using the spontini_server_core:asgi parameter...