Allow insecure connections to Gitlab (#234)

This MR makes it possible to ignore bad x509 certificates when connecting to Gitlab, by creating a custom HTTP connection. The option is exposed via the setup function. This is a PATCH release.
This commit is contained in:
Harrison (Harry) Cramer
2024-04-02 21:53:25 -04:00
committed by GitHub
parent 670f08849f
commit 4f1fe4ae25
5 changed files with 45 additions and 15 deletions

View File

@@ -92,6 +92,8 @@ gitlab_url=https://my-personal-gitlab-instance.com/
The plugin will look for the `.gitlab.nvim` file in the root of the current project by default. However, you may provide a custom path to the configuration file via the `config_path` option. This must be an absolute path to the directory that holds your `.gitlab.nvim` file.
For more settings, please see `:h gitlab.nvim.connecting-to-gitlab`
## Configuring the Plugin
Here is the default setup function. All of these values are optional, and if you call this function with no values the defaults will be used:
@@ -108,6 +110,9 @@ require("gitlab").setup({
imply_local = false, -- If true, will attempt to use --imply_local option when calling |:DiffviewOpen|
},
},
connection_settings = {
insecure = false, -- Like curl's --insecure option, ignore bad x509 certificates on connection
},
help = "g?", -- Opens a help popup for local keymaps when a relevant view is focused (popup, discussion panel, etc)
popup = { -- The popup for comment creation, editing, and replying
exit = "<Esc>",