Skip to content
Clone

refactor(config): remove unused server, service auth, ssh and graphql settings

ZhenYi committed
parent f676268 commit fae3bed Browse files

4 files changed

+3 −31

File tree 4
Modified config/default/auth.json View config/default/auth.json
@@ -14,7 +14,7 @@
1414 "email_code_rate_limit_secs": 60,
1515 "max_verify_attempts": 5,
1616 "min_age": 13,
17 "totp_encryption_key": "REPLACE_WITH_TOTP_ENCRYPTION_KEY_BASE64_32_BYTES",
17 "totp_encryption_key": "UkVQTEFDRV9XSVRIX1RPVFBfS0VZXzMyX0JZVEVTISE=",
1818 "agreements": [
1919 {
2020 "key": "terms",
@@ -28,6 +28,5 @@
2828 "title": "Privacy Policy",
2929 "content_md": "Placeholder privacy policy."
3030 }
31 ],
32 "rpc_key": "REPLACE_WITH_RPC_KEY_AT_LEAST_32_CHARS"
31 ]
3332}
Modified config/default/git.json View config/default/git.json
@@ -1,6 +1,5 @@
11{
22 "repo_root": "/opt/gitdata/repos",
3 "objects_root": "/opt/gitdata/objects",
43 "max_blob_size": 104857600,
54 "git_command_timeout_secs": 300,
65 "git_rpc_timeout_secs": 3600,
@@ -9,20 +8,7 @@
98 "ssh_clone_host": "",
109 "ssh_clone_port": 0,
1110 "ssh_clone_user": "git",
12 "graphql_complexity_limit": 1000,
13 "graphql_introspection": true,
1411 "kenshell_endpoint": "http://127.0.0.1:7013",
1512 "kenshell_rpc_key": "dev-kenshell-rpc-key-change-in-production",
16 "kenshell_timeout_secs": 3600,
17 "ssh": {
18 "bind_addr": "0.0.0.0",
19 "port": 7053,
20 "host_key_path": "/opt/gitdata/ssh_host_ed25519",
21 "banner": "",
22 "max_sessions": 64,
23 "auth_rejection_time": 2,
24 "inactivity_timeout": 300,
25 "keepalive_interval": 30,
26 "keepalive_max": 3
27 }
13 "kenshell_timeout_secs": 3600
2814}
Deleted config/default/server.json
@@ -1,3 +0,0 @@
1{
2 "grpc_addr": "127.0.0.1:7022"
3}
No newline at end of file
Deleted config/default/service_auth.json
@@ -1,10 +0,0 @@
1{
2 "service_id": "oauth",
3 "key": "REPLACE_WITH_OAUTH_SERVICE_SECRET_32_BYTES_MINIMUM",
4 "peers": {
5 "api": "sha256:REPLACE_WITH_API_SERVICE_SECRET_SHA256_HEX",
6 "socket": "sha256:REPLACE_WITH_SOCKET_SERVICE_SECRET_SHA256_HEX",
7 "oauth": "sha256:REPLACE_WITH_OAUTH_SERVICE_SECRET_SHA256_HEX",
8 "git": "sha256:REPLACE_WITH_GIT_SERVICE_SECRET_SHA256_HEX"
9 }
10}