diff options
author | Unknwon <u@gogs.io> | 2016-02-27 20:48:39 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-27 20:48:39 -0500 |
commit | 8055a0bdac005189077df69870cd2ed0b7eebd56 (patch) | |
tree | bf3fa2bf419006ea846315eef48fb5e83378376c /conf | |
parent | 83c74878df3f6edec4fca51e9cec299d2a1bb897 (diff) | |
download | gitea-8055a0bdac005189077df69870cd2ed0b7eebd56.tar.gz gitea-8055a0bdac005189077df69870cd2ed0b7eebd56.zip |
Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 30 | ||||
-rw-r--r-- | conf/locale/locale_en-US.ini | 13 |
2 files changed, 27 insertions, 16 deletions
diff --git a/conf/app.ini b/conf/app.ini index 4ec1b9b5ec..f50bc0f196 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -71,13 +71,13 @@ SSH_PORT = 22 SSH_LISTEN_PORT = %(SSH_PORT)s ; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. SSH_ROOT_PATH = -; override engine choice to check public keys (default: 'ssh-keygen' when -; DISABLE_SSH is set to false else 'native') -SSH_PUBLICKEY_CHECK = -; directory to create temporary files when using ssh-keygen (default: /tmp) -SSH_WORK_PATH = -; path to ssh-keygen (default: result of `which ssh-keygen`) -SSH_KEYGEN_PATH = +; Directory to create temporary files when test publick key using ssh-keygen, +; default is system temporary directory. +SSH_KEY_TEST_PATH = +; Path to ssh-keygen, default is 'ssh-keygen' and let shells find out which one to call. +SSH_KEYGEN_PATH = ssh-keygen +; Indicate whether to check minimum key size with corresponding type +MINIMUM_KEY_SIZE_CHECK = false ; Disable CDN even in "prod" mode OFFLINE_MODE = false DISABLE_ROUTER_LOG = false @@ -98,6 +98,13 @@ ENABLE_GZIP = false ; Landing page for non-logged users, can be "home" or "explore" LANDING_PAGE = home +; Define allowed algorithms and their minimum key length (use -1 to disable a type) +[ssh.minimum_key_sizes] +ED25519 = 256 +ECDSA = 256 +RSA = 2048 +DSA = 1024 + [database] ; Either "mysql", "postgres" or "sqlite3", it's your choice DB_TYPE = mysql @@ -139,15 +146,6 @@ ENABLE_REVERSE_PROXY_AUTHENTICATION = false ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false ; Enable captcha validation for registration ENABLE_CAPTCHA = true -; Do not check minimum key size with corresponding type -ENABLE_MINIMUM_KEY_SIZE_CHECK = false - -; define allowed algorithms and their minimum key length (use -1 to disable a type) -[service.minimum_key_sizes] -ED25519 = 256 -ECDSA = 256 -RSA = 2048 -DSA = 1024 [webhook] ; Hook task queue length diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index afe36f8321..6b6d4fee62 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -960,6 +960,19 @@ config.static_file_root_path = Static File Root Path config.log_file_root_path = Log File Root Path config.script_type = Script Type config.reverse_auth_user = Reverse Authentication User + +config.ssh_config = SSH Configuration +config.ssh_enabled = Enabled +config.ssh_start_builtin_server = Start Builtin Server +config.ssh_domain = Domain +config.ssh_port = Port +config.ssh_listen_port = Listen Port +config.ssh_root_path = Root Path +config.ssh_key_test_path = Key Test Path +config.ssh_keygen_path = Keygen ('ssh-keygen') Path +config.ssh_minimum_key_size_check = Minimum Key Size Check +config.ssh_minimum_key_sizes = Minimum Key Sizes + config.db_config = Database Configuration config.db_type = Type config.db_host = Host |