Skip to content

Commit

Permalink
doc/nixos/phoebus-save-and-restore: init guide
Browse files Browse the repository at this point in the history
  • Loading branch information
minijackson committed Oct 27, 2023
1 parent ed92400 commit 6e442a2
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ website:
contents:
- ./nixos/guides/ca-gateway.md
- ./nixos/guides/phoebus-alarm.md
- ./nixos/guides/phoebus-save-and-restore.md
- section: Explanations
- section: References
contents:
Expand Down
50 changes: 50 additions & 0 deletions doc/nixos/guides/phoebus-save-and-restore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: Phoebus Save-and-restore setup
---

The Phoebus Save-and-restore service is used by clients
to manage configuration and snapshots of PV values.
These snapshots can then be used by clients for comparison or for restoring PVs.

This guide focuses on installing and configuring the Save-and-Restore service on a single server.

For more details and documentation about Phoebus Save-and-Restore,
you can examine the [Save-and-restore official documentation].

[Save-and-restore official documentation]: https://control-system-studio.readthedocs.io/en/latest/services/save-and-restore/doc/index.html

{{< include _pre-requisites.md >}}

# Enabling the Phoebus Save-and-restore service

To enable the Phoebus Save-and-restore service,
add this to your configuration:

``` nix
{lib, ...}: {
services.phoebus-save-and-restore = {
enable = true;
openFirewall = true;
};
# Elasticsearch, needed by Phoebus Save-and-restore, is not free software (SSPL | Elastic License).
# To accept the license, add the code below:
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"elasticsearch"
];
}
```

From the Phoebus graphical client side,
add this configuration

``` ini
# Replace the IP address with your server's IP address or domain name
org.phoebus.applications.saveandrestore/jmasar.service.url=http://192.168.1.42:8080
```

::: callout-warning
URLs for future versions of Phoebus Save-and-restore will need to change to:
`http://192.168.1.42:8080/save-restore`
:::

0 comments on commit 6e442a2

Please sign in to comment.