summaryrefslogtreecommitdiff
path: root/http/config.go
blob: abb14d9a9d304d0613b5960c84558ce95c7b9466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package http

import (
	"github.com/spiral/roadrunner"
)

// Configures RoadRunner HTTP server.
type Config struct {
	// Enable enables http service.
	Enable bool

	// Address and port to handle as http server.
	Address string

	// MaxRequest specified max size for payload body in bytes, set 0 to unlimited.
	MaxRequest int64

	// Uploads configures uploads configuration.
	Uploads *UploadsConfig

	// Workers configures roadrunner server and worker pool.
	Workers *roadrunner.ServerConfig
}

// Valid validates the configuration.
func (cfg *Config) Valid() error {
	return nil
}