From 81b0873a1ebaa089ff15a65582f31048f10ba787 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 11 Nov 2023 13:14:42 -0600 Subject: [PATCH] Add read_only to pict-rs.toml --- pict-rs.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pict-rs.toml b/pict-rs.toml index c82037e..f7d7a9e 100644 --- a/pict-rs.toml +++ b/pict-rs.toml @@ -5,6 +5,13 @@ # default: 0.0.0.0:8080 address = '0.0.0.0:8080' +## Optional: whether to reject any operations that would change the state of pict-rs. +# environment variable: PICTRS__SERVER__READ_ONLY +# default: false +# +# This can be useful if you need to run a copy of pict-rs while performing maintenance. +read_only = false + ## Optional: shared secret for internal endpoints # environment variable: PICTRS__SERVER__API_KEY # default: empty