1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

chore: remove clean up related parameters

This commit is contained in:
Ferdinand Mütsch 2020-11-07 12:34:17 +01:00
parent 2f12d8efde
commit 7befb82814
5 changed files with 1 additions and 8 deletions

View File

@ -64,7 +64,6 @@ You can specify configuration options either via a config file (default: `config
| YAML Key | Environment Variable | Default | Description | | YAML Key | Environment Variable | Default | Description |
|---------------------------|---------------------------|--------------|---------------------------------------------------------------------| |---------------------------|---------------------------|--------------|---------------------------------------------------------------------|
| `env` | `ENVIRONMENT` | `dev` | Whether to use development- or production settings | | `env` | `ENVIRONMENT` | `dev` | Whether to use development- or production settings |
| `app.cleanup` | `WAKAPI_CLEANUP` | `false` | Whether or not to clean up old heartbeats (be careful!) |
| `app.custom_languages` | - | - | Map from file endings to language names | | `app.custom_languages` | - | - | Map from file endings to language names |
| `server.port` | `WAKAPI_PORT` | `3000` | Port to listen on | | `server.port` | `WAKAPI_PORT` | `3000` | Port to listen on |
| `server.listen_ipv4` | `WAKAPI_LISTEN_IPV4` | `127.0.0.1` | Network address to listen on | | `server.listen_ipv4` | `WAKAPI_LISTEN_IPV4` | `127.0.0.1` | Network address to listen on |

View File

@ -6,7 +6,6 @@ server:
base_path: / base_path: /
app: app:
cleanup: false # only edit, if you know what you're doing
aggregation_time: '02:15' # time at which to run daily aggregation batch jobs aggregation_time: '02:15' # time at which to run daily aggregation batch jobs
custom_languages: custom_languages:
vue: Vue vue: Vue

View File

@ -34,7 +34,6 @@ var (
) )
type appConfig struct { type appConfig struct {
CleanUp bool `default:"false" env:"WAKAPI_CLEANUP"`
AggregationTime string `yaml:"aggregation_time" default:"02:15" env:"WAKAPI_AGGREGATION_TIME"` AggregationTime string `yaml:"aggregation_time" default:"02:15" env:"WAKAPI_AGGREGATION_TIME"`
CustomLanguages map[string]string `yaml:"custom_languages"` CustomLanguages map[string]string `yaml:"custom_languages"`
LanguageColors map[string]string `yaml:"-"` LanguageColors map[string]string `yaml:"-"`

View File

@ -8,10 +8,6 @@ import (
"github.com/muety/wakapi/models" "github.com/muety/wakapi/models"
) )
const (
cleanUpInterval = time.Duration(aggregateIntervalDays) * 2 * 24 * time.Hour
)
type HeartbeatService struct { type HeartbeatService struct {
config *config.Config config *config.Config
repository *repositories.HeartbeatRepository repository *repositories.HeartbeatRepository

View File

@ -1 +1 @@
1.16.0 1.16.1