-
Notifications
You must be signed in to change notification settings - Fork 180
/
keys.go
127 lines (112 loc) · 3.98 KB
/
keys.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
* Copyright (c) 2019-2022. Abstrium SAS <team (at) pydio.com>
* This file is part of Pydio Cells.
*
* Pydio Cells is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Pydio Cells is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Pydio Cells. If not, see <http://www.gnu.org/licenses/>.
*
* The latest code can be found at <https://pydio.com>.
*/
package runtime
const (
KeyDiscovery = "discovery"
KeyRegistry = "registry"
KeyBroker = "broker"
KeyConfig = "config"
KeyVault = "vault"
KeyKeyring = "keyring"
KeyCertsStore = "certs_store"
KeyCache = "cache"
KeyShortCache = "shortcache"
KeyFork = "fork"
KeyForkLegacy = "is_fork"
KeyArgTags = "tags"
KeyArgExclude = "exclude"
KeyNodeCapacity = "cap"
KeyAdvertiseAddress = "advertise_address"
KeyBindHost = "bind_address"
KeyGrpcDiscoveryPort = "grpc_discovery_port"
KeyGrpcPort = "grpc_port"
KeyHttpPort = "http_port"
KeyGrpcExternal = "grpc_external"
KeyHealthCheckPort = "healthcheck"
KeySiteBind = "site_bind"
KeySiteExternal = "site_external"
KeySiteNoTLS = "site_no_tls"
KeySiteTlsCertFile = "site_tls_cert_file"
KeySiteTlsKeyFile = "site_tls_key_file"
KeySiteLetsEncryptEmail = "site_le_email"
KeySiteLetsEncryptAgree = "site_le_agree"
KeySiteLetsEncryptStaging = "site_le_staging"
// Legacy versions without "site_" prefix
KeySiteBindL = "bind"
KeySiteExternalL = "external"
KeySiteNoTLSL = "no_tls"
KeySiteTlsCertFileL = "tls_cert_file"
KeySiteTlsKeyFileL = "tls_key_file"
KeySiteLetsEncryptEmailL = "le_email"
KeySiteLetsEncryptAgreeL = "le_agree"
KeySiteLetsEncryptStagingL = "le_staging"
KeyInstallCli = "install_cli"
KeyInstallYaml = "install_yaml"
KeyInstallJson = "install_json"
KeyInstallExitAfter = "exit_after_install"
KeyInstallCliLegacy = "cli"
KeyInstallYamlLegacy = "yaml"
KeyInstallJsonLegacy = "json"
KeyLog = "log"
KeyLogJson = "log_json"
KeyLogToFile = "log_to_file"
KeyEnableMetrics = "enable_metrics"
KeyMetricsBasicAuth = "metrics_basic_auth"
KeyEnablePprof = "enable_pprof"
KeyHttpServer = "http"
HttpServerCaddy = "caddy"
HttpServerNative = "http"
DefaultDiscoveryPort = "8030"
DefaultGrpcPort = "8031"
DefaultBindingSitePort = "8080"
DefaultHttpPort = "0"
DefaultConfigFileName = "pydio.json"
DefaultVaultFileName = "pydio-vault.json"
DefaultKeyringFileName = "cells-vault-key"
DefaultCertStorePath = "certs"
DefaultConfigSuffix = "/config"
DefaultVaultSuffix = "/vault"
DefaultRegistrySuffix = "/registry"
DefaultBrokerSuffix = "/broker"
DefaultCacheSuffix = "/cache"
DefaultShortCacheSuffix = "/shortcache"
)
const (
NodeMetaPID = "PID"
NodeMetaParentPID = "parentPID"
NodeMetaMetrics = "metrics"
NodeMetaStartTag = "start"
NodeMetaForkStartTag = "forkStartTag"
NodeMetaHostName = "hostname"
NodeMetaCapacities = "capacities"
NodeRootID = "rootID"
)
var (
legacyMap = map[string]string{
KeySiteBind: KeySiteBindL,
KeySiteExternal: KeySiteExternalL,
KeySiteNoTLS: KeySiteNoTLSL,
KeySiteTlsCertFile: KeySiteTlsCertFileL,
KeySiteTlsKeyFile: KeySiteTlsKeyFileL,
KeySiteLetsEncryptEmail: KeySiteLetsEncryptEmailL,
KeySiteLetsEncryptAgree: KeySiteLetsEncryptAgreeL,
KeySiteLetsEncryptStaging: KeySiteLetsEncryptStagingL,
}
)