Skip to content

Commit

Permalink
Update 2022-10-17-moonraker-config-changes.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt authored Nov 12, 2022
1 parent 435a118 commit 934543e
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions site/blog/2022-10-17-moonraker-config-changes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,6 @@ Users who installed RatOS before 1.2.1 have an unmanaged moonraker config, this
## Checking if your moonraker config is managed
To check if you have a managed config (and thus don't need to do anything besides clicking the update buttons), you can look in your moonraker.conf for `[include config/moonraker.conf]`, if that is present, you have a managed moonraker config. If it's not, you have an unmanaged config, and you'll have to follow the instructions in the notification, if any is present.

## Updating to a managed config
For those who wish to update their moonraker configuration to be managed by RatOS you can do so by making sure RatOS is updated and then replace the contents of moonraker.conf with the following:

```properties
# Load the RatOS moonraker defaults
[include config/moonraker.conf]

# If you use a non standard ip range in your local network,
# you can specify it under trusted_clients here.
[authorization]
cors_domains:
http://app.fluidd.xyz
https://app.fluidd.xyz
https://my.mainsail.xyz
http://my.mainsail.xyz
http://*.local
http://*.lan
trusted_clients:
127.0.0.1
10.0.0.0/8
127.0.0.0/8
169.254.0.0/16
172.16.0.0/12
192.168.0.0/16
FE80::/10
::1/128
FD00::/8
```

Any changes you've made or want to make to the moonraker config, goes after this. The moonraker config works just like the klipper config, so you can override sections and parameters just like you're used to, they just need to come after the `[include]` statement. See [Includes and Overides](/docs/configuration/includes-and-overrides) for more information on how the config merging works.

## Missing files after update
If you're missing files after updating (can happen if you do things out of order), you can run the following macro to restore them: `DELETE_AND_RESTORE_PRINTER_DATA_DIRS`. Restart moonraker and reload mainsail after running the macro.

Expand Down

1 comment on commit 934543e

@vercel
Copy link

@vercel vercel bot commented on 934543e Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rat-os – ./

rat-os.vercel.app
rat-os-git-master-ratos.vercel.app
rat-os-ratos.vercel.app

Please sign in to comment.