feat(server): Add filesystem storage backend config options
The filesystem storage backend can be enabled by setting `NIXERY_STORAGE_BACKEND` to `filesystem` and `STORAGE_PATH` to a disk location from which Nixery can serve files.
This commit is contained in:
parent
167a0b3263
commit
790bce219c
3 changed files with 11 additions and 1 deletions
|
|
@ -202,6 +202,8 @@ func main() {
|
|||
switch cfg.Backend {
|
||||
case config.GCS:
|
||||
s, err = storage.NewGCSBackend()
|
||||
case config.FileSystem:
|
||||
s, err = storage.NewFSBackend()
|
||||
}
|
||||
if err != nil {
|
||||
log.WithError(err).Fatal("failed to initialise storage backend")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue