mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
go-ipfs-config: Make gateway read-only by default and add option to make it writable
This commit is contained in:
parent
075ae67fdd
commit
cf854f9a20
@ -3,4 +3,5 @@ package config
|
||||
// Gateway contains options for the HTTP gateway server.
|
||||
type Gateway struct {
|
||||
RootRedirect string
|
||||
Writable bool
|
||||
}
|
||||
|
||||
@ -54,6 +54,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
|
||||
|
||||
Gateway: Gateway{
|
||||
RootRedirect: "",
|
||||
Writable: false,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user