codimd: remove unneeded defaults

This commit is contained in:
WilliButz 2018-09-18 18:23:03 +02:00 committed by Robin Gloster
parent fc93264f59
commit 3961cab52f

View file

@ -407,21 +407,18 @@ in
options = { options = {
accessKey = mkOption { accessKey = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Minio access key. Minio access key.
''; '';
}; };
secretKey = mkOption { secretKey = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Minio secret key. Minio secret key.
''; '';
}; };
endpoint = mkOption { endpoint = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Minio endpoint. Minio endpoint.
''; '';
@ -450,21 +447,18 @@ in
options = { options = {
accessKeyId = mkOption { accessKeyId = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
AWS access key id. AWS access key id.
''; '';
}; };
secretAccessKey = mkOption { secretAccessKey = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
AWS access key. AWS access key.
''; '';
}; };
region = mkOption { region = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
AWS S3 region. AWS S3 region.
''; '';
@ -500,14 +494,12 @@ in
options = { options = {
connectionString = mkOption { connectionString = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Azure Blob Storage connection string. Azure Blob Storage connection string.
''; '';
}; };
container = mkOption { container = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Azure Blob Storage container name. Azure Blob Storage container name.
It will be created if non-existent. It will be created if non-existent.
@ -523,28 +515,24 @@ in
options = { options = {
authorizationURL = mkOption { authorizationURL = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Specify the OAuth authorization URL. Specify the OAuth authorization URL.
''; '';
}; };
tokenURL = mkOption { tokenURL = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Specify the OAuth token URL. Specify the OAuth token URL.
''; '';
}; };
clientID = mkOption { clientID = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Specify the OAuth client ID. Specify the OAuth client ID.
''; '';
}; };
clientSecret = mkOption { clientSecret = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Specify the OAuth client secret. Specify the OAuth client secret.
''; '';
@ -559,14 +547,12 @@ in
options = { options = {
clientID = mkOption { clientID = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Facebook API client ID. Facebook API client ID.
''; '';
}; };
clientSecret = mkOption { clientSecret = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Facebook API client secret. Facebook API client secret.
''; '';
@ -581,14 +567,12 @@ in
options = { options = {
consumerKey = mkOption { consumerKey = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Twitter API consumer key. Twitter API consumer key.
''; '';
}; };
consumerSecret = mkOption { consumerSecret = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Twitter API consumer secret. Twitter API consumer secret.
''; '';
@ -603,14 +587,12 @@ in
options = { options = {
clientID = mkOption { clientID = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
GitHub API client ID. GitHub API client ID.
''; '';
}; };
clientSecret = mkOption { clientSecret = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Github API client secret. Github API client secret.
''; '';
@ -633,14 +615,12 @@ in
}; };
clientID = mkOption { clientID = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
GitLab API client ID. GitLab API client ID.
''; '';
}; };
clientSecret = mkOption { clientSecret = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
GitLab API client secret. GitLab API client secret.
''; '';
@ -663,21 +643,18 @@ in
options = { options = {
baseURL = mkOption { baseURL = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Mattermost authentication endpoint. Mattermost authentication endpoint.
''; '';
}; };
clientID = mkOption { clientID = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Mattermost API client ID. Mattermost API client ID.
''; '';
}; };
clientSecret = mkOption { clientSecret = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Mattermost API client secret. Mattermost API client secret.
''; '';
@ -692,21 +669,18 @@ in
options = { options = {
clientID = mkOption { clientID = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Dropbox API client ID. Dropbox API client ID.
''; '';
}; };
clientSecret = mkOption { clientSecret = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Dropbox API client secret. Dropbox API client secret.
''; '';
}; };
appKey = mkOption { appKey = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Dropbox app key. Dropbox app key.
''; '';
@ -721,14 +695,12 @@ in
options = { options = {
clientID = mkOption { clientID = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Google API client ID. Google API client ID.
''; '';
}; };
clientSecret = mkOption { clientSecret = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Google API client secret. Google API client secret.
''; '';
@ -750,7 +722,6 @@ in
}; };
url = mkOption { url = mkOption {
type = types.str; type = types.str;
default = "";
example = "ldap://localhost"; example = "ldap://localhost";
description = '' description = ''
URL of LDAP server. URL of LDAP server.
@ -758,21 +729,18 @@ in
}; };
bindDn = mkOption { bindDn = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Bind DN for LDAP access. Bind DN for LDAP access.
''; '';
}; };
bindCredentials = mkOption { bindCredentials = mkOption {
type = types.str; type = types.str;
default = "";
description = '' description = ''
Bind credentials for LDAP access. Bind credentials for LDAP access.
''; '';
}; };
searchBase = mkOption { searchBase = mkOption {
type = types.str; type = types.str;
default = "";
example = "o=users,dc=example,dc=com"; example = "o=users,dc=example,dc=com";
description = '' description = ''
LDAP directory to begin search from. LDAP directory to begin search from.
@ -780,7 +748,6 @@ in
}; };
searchFilter = mkOption { searchFilter = mkOption {
type = types.str; type = types.str;
default = "";
example = "(uid={{username}})"; example = "(uid={{username}})";
description = '' description = ''
LDAP filter to search with. LDAP filter to search with.
@ -788,7 +755,6 @@ in
}; };
searchAttributes = mkOption { searchAttributes = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
default = [];
example = [ "displayName" "mail" ]; example = [ "displayName" "mail" ];
description = '' description = ''
LDAP attributes to search with. LDAP attributes to search with.
@ -804,7 +770,6 @@ in
}; };
useridField = mkOption { useridField = mkOption {
type = types.str; type = types.str;
default = "";
example = "uid"; example = "uid";
description = '' description = ''
LDAP field which is a unique identifier for users on CodiMD. LDAP field which is a unique identifier for users on CodiMD.
@ -812,7 +777,6 @@ in
}; };
tlsca = mkOption { tlsca = mkOption {
type = types.str; type = types.str;
default = "";
example = "server-cert.pem,root.pem"; example = "server-cert.pem,root.pem";
description = '' description = ''
Root CA for LDAP TLS in PEM format. Root CA for LDAP TLS in PEM format.
@ -828,15 +792,13 @@ in
options = { options = {
idpSsoUrl = mkOption { idpSsoUrl = mkOption {
type = types.str; type = types.str;
default = "";
example = "https://idp.example.com/sso"; example = "https://idp.example.com/sso";
description = '' description = ''
IdP authentication endpoint. IdP authentication endpoint.
''; '';
}; };
idpCert = mkOption { idpCert = mkOption {
type = types.str; type = types.path;
default = "";
example = "/path/to/cert.pem"; example = "/path/to/cert.pem";
description = '' description = ''
Path to IdP certificate file in PEM format. Path to IdP certificate file in PEM format.