mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
``` git ls-files \*.js \*.go \ | xargs sed -i '1i // SPDX-FileCopyrightText: 2022 Free Mobile\n// SPDX-License-Identifier: AGPL-3.0-only\n' git ls-files \*.vue \ | xargs sed -i '1i <!-- SPDX-FileCopyrightText: 2022 Free Mobile -->\n<!-- SPDX-License-Identifier: AGPL-3.0-only -->\n' ```
20 lines
496 B
Go
20 lines
496 B
Go
// SPDX-FileCopyrightText: 2022 Free Mobile
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
package http
|
|
|
|
// Configuration describes the configuration for the HTTP server.
|
|
type Configuration struct {
|
|
// Listen defines the listening string to listen to.
|
|
Listen string
|
|
// Profiler enables Go profiler as /debug
|
|
Profiler bool
|
|
}
|
|
|
|
// DefaultConfiguration is the default configuration of the HTTP server.
|
|
func DefaultConfiguration() Configuration {
|
|
return Configuration{
|
|
Listen: "0.0.0.0:8080",
|
|
}
|
|
}
|