Eric Callahan d1f97f2658 authorization: fix blocking call to socket.getfqdn()
If the upstream DNS server is not available the call to socket.getfqdn()
will block until a timeout occurs.  This blocks Moonraker's event loop,
resulting in carnage.

Call getfqdn() in a thread with a timeout of 5 seconds.  In addition,
only request the fqdn if the user has one or more trusted domains
configured.  Finally, cache resolved  FQDNs for 24 hours to limit
repeated DNS queries.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2024-01-22 12:03:01 -05:00
2024-01-21 13:50:30 -05:00
2024-01-13 15:15:13 -05:00
2023-02-22 12:16:27 -05:00
2020-07-01 20:13:59 -04:00
2020-07-01 20:13:59 -04:00
2023-02-23 11:29:39 -05:00
2023-03-05 12:28:42 -05:00
2024-01-13 15:15:13 -05:00
2023-02-23 11:29:39 -05:00

pdm-managed

Moonraker - API Web Server for Klipper

Moonraker is a Python 3 based web server that exposes APIs with which client applications may use to interact with the 3D printing firmware Klipper. Communication between the Klippy host and Moonraker is done over a Unix Domain Socket. Tornado is used to provide Moonraker's server functionality.

Documentation for users and developers can be found on Read the Docs.

Clients

Note that Moonraker does not come bundled with a client, you will need to install one. The following clients are currently available:

Raspberry Pi Images

Moonraker is available pre-installed with the following Raspberry Pi images:

Docker Containers

The following projects deploy Moonraker via Docker:

  • prind by mkuf
    • A suite of containers which allow you to run Klipper in Docker. Includes support for OctoPrint and Moonraker.

Changes

Please refer to the changelog for a list of notable changes to Moonraker.

S
Description
Web API Server for Klipper
Readme GPL-3.0
10 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 96.1%
Shell 2.7%
HTML 1.2%