https://cerbos.dev logo
#help
Title
# help
p

Paul Werner

05/04/2023, 9:56 AM
Is it possible to define config as environment variables (f.ex. for google cloud run)? How to format them? like this server.httpListenAddr or server_httpListenAddr?
c

Charith (Cerbos)

05/04/2023, 11:00 AM
There are two ways to deal with this: • You can use commandline arguments to define config. For example
--set=storage.driver=disk
sets the
storage.driver
config value. You can repeat
--set
as many times as you like. • You can create a config file with placeholders that read their values from the environment by using the syntax
${VARIABLE}
and bake that into the container image.
p

Paul Werner

05/04/2023, 11:24 AM
thanks that helped
6 Views