summaryrefslogtreecommitdiff
path: root/service/static/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-30 17:58:16 +0300
committerWolfy-J <[email protected]>2018-09-30 17:58:16 +0300
commit734fab795eb5ee396ee76955c9ddadc4f3b09112 (patch)
treecec3a313fe207c3f91cd142d6d37202ef4db9494 /service/static/config.go
parent6122fca108c20984732c969fb1ba53cce5b3c44a (diff)
https and http2 support
Diffstat (limited to 'service/static/config.go')
-rw-r--r--service/static/config.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/service/static/config.go b/service/static/config.go
index be0ac3ed..5df7b013 100644
--- a/service/static/config.go
+++ b/service/static/config.go
@@ -10,9 +10,6 @@ import (
// Config describes file location and controls access to them.
type Config struct {
- // Enables StaticFile service.
- Enable bool
-
// Dir contains name of directory to control access to.
Dir string
@@ -32,10 +29,6 @@ func (c *Config) Hydrate(cfg service.Config) error {
// Valid returns nil if config is valid.
func (c *Config) Valid() error {
- if !c.Enable {
- return nil
- }
-
st, err := os.Stat(c.Dir)
if err != nil {
if os.IsNotExist(err) {