From 2217c97632f4d20e32c72f337e1e62d268b8ff1b Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Mon, 26 Jan 2015 23:17:58 -0800 Subject: [PATCH] go-ipfs-config: repo/config: Added Gateway options to config --- config/config.go | 1 + config/gateway.go | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 config/gateway.go diff --git a/config/config.go b/config/config.go index 816ffcef5..9159223f7 100644 --- a/config/config.go +++ b/config/config.go @@ -23,6 +23,7 @@ type Config struct { Version Version // local node's version management Bootstrap []BootstrapPeer // local nodes's bootstrap peers Tour Tour // local node's tour position + Gateway Gateway // local node's gateway server options } const ( diff --git a/config/gateway.go b/config/gateway.go new file mode 100644 index 000000000..7bc3eb020 --- /dev/null +++ b/config/gateway.go @@ -0,0 +1,6 @@ +package config + +// Gateway contains options for the HTTP gateway server. +type Gateway struct { + RootRedirect string +}