docs: add missing documentation

- Document "enable_cors".  Resolves #18.
- Add a note that Moonraker is not aware of the gcode file path  until Klippy successfully starts.  Resolves #16.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-09-12 07:46:37 -04:00
parent 8b08b03fbf
commit 36fb1da46d
1 changed files with 13 additions and 4 deletions

View File

@ -115,10 +115,16 @@ missing one or both, you can simply add the bare sections to printer.cfg:
[virtual_sdcard] [virtual_sdcard]
path: ~/gcode_files path: ~/gcode_files
``` ```
NOTE: While Klipper does not set any hard limits on the location of the NOTES:
`path` option for the `virtual_sdcard`, Moonraker requires that the path - While Klipper does not set any hard limits on the location of the
be located within the HOME directory, it cannot however be the HOME `path` option for the `virtual_sdcard`, Moonraker requires that the path
directory. If you wish to host your files elsewhere, use a symlink. be located within the HOME directory, it cannot however be the HOME
directory. If you wish to host your files elsewhere, use a symlink.
- Upon first starting Moonraker is not aware of the gcode file path, thus
it cannot serve gcode files, add directories, etc. After Klippy enters
the "ready" state it sends Moonraker the gcode file path.
Once Moonraker receives the path it will retain it regardless of Klippy's
state, and update it if the path is changed in printer.cfg.
## Moonraker configuration (moonraker.conf) ## Moonraker configuration (moonraker.conf)
@ -156,6 +162,9 @@ klippy_address: /tmp/klippy_uds
# is /tmp/klippy_uds # is /tmp/klippy_uds
max_upload_size: 200 max_upload_size: 200
# The maximum size allowed for a file upload. Default is 200 MiB. # The maximum size allowed for a file upload. Default is 200 MiB.
enable_cors: False
# Enables CORS for all http requests. This option is useful for web
# application development. Default is False.
enable_debug_logging: True enable_debug_logging: True
# When set to True Moonraker will log in verbose mode. During this stage # When set to True Moonraker will log in verbose mode. During this stage
# of development the default is True. In the future this will change. # of development the default is True. In the future this will change.