BCDA-APS / bluesky_training

Bluesky training, including instrument package
https://bcda-aps.github.io/bluesky_training/
Other
11 stars 0 forks source link

Use QS as web service #198

Closed prjemian closed 9 months ago

prjemian commented 1 year ago

Instead of starting QS with start-re-manager, try starting as a web server, such as https://github.com/BCDA-APS/qs-web2023/issues/5.

prjemian commented 1 year ago

What does the configuration file look like? Are there any examples?

prjemian commented 1 year ago

https://blueskyproject.io/bluesky-httpserver/configuration.html

prjemian commented 1 year ago

Regarding API access: https://blueskyproject.io/bluesky-httpserver/configuration.html#basic-api-access-policy

prjemian commented 1 year ago
prjemian commented 1 year ago

To access the server from other network hosts, start the server with a different host:

host accessible from
--host localhost only clients running on localhost
--host "${HOSTNAME}" any clients which can access HOSTNAME via http://
prjemian commented 1 year ago

Here are a few test URLs (all are GET, not POST):

prjemian commented 1 year ago

Next steps for the server: add user-based session authentication

prjemian commented 1 year ago

This schematic shows the implementation to use. It allows the use of existing local tools, such as the queue-monitor GUI, in addition to providing a QS Web Server for Web Clients. The QS Web Server is needed since web clients cannot make ZMQ requests directly to the queueserver process (using ports 60615 and 60625). The QS Web Server is the necessary intermediary that handles web clients by http(s) and talks with the queueserver by ZMQ.

image

prjemian commented 1 year ago

Push to next milestone ...

prjemian commented 9 months ago

No longer a priority.