wekan-help 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. #!/bin/bash
  2. # first read settings
  3. source $SNAP/bin/wekan-read-settings &>/dev/null
  4. if [ "$CADDY_ENABLED" = "true" ]; then
  5. # tweak port nunmber as it has been remapped
  6. export PORT=${CADDY_PORT} &>/dev/null
  7. fi
  8. echo -e "Wekan: The open-source kanban.\n"
  9. echo -e "\n"
  10. echo -e "Debug OIDC OAuth2 etc."
  11. echo -e "To enable the Debug of Wekan:"
  12. echo -e "\t$ snap set $SNAP_NAME debug='true'"
  13. echo -e "\t-Disable the Debug of Wekan:"
  14. echo -e "\t$ snap set $SNAP_NAME debug='false'"
  15. echo -e "\n"
  16. echo -e "Make sure you have connected all interfaces, check more by calling $ snap interfaces ${SNAP_NAME}"
  17. echo -e "\n"
  18. echo -e "${SNAP_NAME} has multiple services, to check status use systemctl"
  19. echo -e "\t$ systemctl status snap.$SNAP_NAME.*"
  20. echo -e "\n"
  21. echo -e "To make backup of wekan's database use: $ ${SNAP_NAME}.database-backup [backup file]"
  22. echo -e "\t backup file is optional parameter, if not passed backup is created in directory:"
  23. echo -e "\t\t${SNAP_COMMON}/db-backups"
  24. echo -e "To list existing backups in default directory: $ ${SNAP_NAME}.database-list-backups"
  25. echo -e "To restore wekan's database use: ${SNAP_NAME}.database-restore <path to backup>"
  26. echo -e "\n"
  27. echo -e "wekan can be configured to share mongodb with other services using content interface"
  28. echo -e "\t-sharing mongodb from $SNAP_NAME to other snap(s):"
  29. echo -e "\t\t-connect mongodb-slot with plug from corresponding snap(s)"
  30. echo -e "\t\t-configure corresponding service to use mongodb unix socket in shared directory, socket file name is: mongodb-$MONGODB_PORT.sock"
  31. echo -e "\t-sharing mongodb from other snap to $SNAP_NAME:"
  32. echo -e "\t\t-connect mongodb-plug with slot from snap providing mongodb"
  33. echo -e "\t\t-disable mongodb in $SNAP_NAME by calling: $ snap set $SNAP_NAME set disable-mongodb='true'"
  34. echo -e "\t\t-set mongodb-bind-unix-socket to point to serving mongodb. Use relative path inside shared directory, e.g run/mongodb-27017.sock"
  35. echo -e "\n"
  36. echo -e "To enable the API of wekan:"
  37. echo -e "\t$ snap set $SNAP_NAME with-api='true'"
  38. echo -e "\t-Disable the API:"
  39. echo -e "\t$ snap set $SNAP_NAME with-api='false'"
  40. echo -e "\n"
  41. echo -e "Accounts lockout known users failures before, greater than 0. Default: 3"
  42. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-failures-before='3'"
  43. echo -e "\n"
  44. echo -e "Accounts lockout know users period, in seconds. Default: 60"
  45. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-period='60'"
  46. echo -e "\n"
  47. echo -e "Accounts lockout unknown failure window, in seconds. Default: 15"
  48. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-known-users-failure-window='15'"
  49. echo -e "\n"
  50. echo -e "Accounts lockout unknown users failures before, greater than 0. Default: 3"
  51. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failures-before='3'"
  52. echo -e "\n"
  53. echo -e "Accounts lockout unknown users lockout period, in seconds. Default: 60"
  54. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-lockout-period='60'"
  55. echo -e "\n"
  56. echo -e "Accounts lockout unknown users failure window, in seconds. Default: 15"
  57. echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failure-window='15'"
  58. echo -e "\n"
  59. echo -e "To enable the Email Notification Timeout of wekan in ms, default 30000 (=30s):"
  60. echo -e "\t$ snap set $SNAP_NAME email-notification-timeout='10000'"
  61. echo -e "\t-Disable the Email Notification Timeout of Wekan:"
  62. echo -e "\t$ snap set $SNAP_NAME email-notification-timeout='30000'"
  63. echo -e "\n"
  64. echo -e "To enable the CORS of wekan, to set Access-Control-Allow-Origin header:"
  65. echo -e "\t$ snap set $SNAP_NAME cors='*'"
  66. echo -e "\t-Disable the CORS:"
  67. echo -e "\t$ snap set $SNAP_NAME cors=''"
  68. echo -e "\n"
  69. echo -e "Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside."
  70. echo -e "\t\t Setting this to false is not recommended, it also disables all other browser policy protections"
  71. echo -e "\t\t and allows all iframing etc. See wekan/server/policy.js"
  72. echo -e "To enable the Browser Policy of Wekan:"
  73. echo -e "\t$ snap set $SNAP_NAME browser-policy-enabled='true'"
  74. echo -e "\t-Disable the Browser Policy of Wekan:"
  75. echo -e "\t$ snap set $SNAP_NAME browser-policy-enabled='false'"
  76. echo -e "\n"
  77. echo -e "When browser policy is enabled, HTML code at this URL can have iframe that embeds Wekan inside."
  78. echo -e "To enable the Trusted URL of Wekan:"
  79. echo -e "\t$ snap set $SNAP_NAME trusted-url='https://example.com'"
  80. echo -e "\t-Disable the Trusted URL of Wekan:"
  81. echo -e "\t$ snap set $SNAP_NAME trusted-url=''"
  82. echo -e "\n"
  83. echo -e "What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId ."
  84. echo -e "To enable the Webhooks Attributes of Wekan:"
  85. echo -e "\t$ snap set $SNAP_NAME webhooks-attributes='cardId,listId,oldListId,boardId,comment,user,card,commentId'"
  86. echo -e "\t-Disable the Webhooks Attributes of Wekan to send all default ones:"
  87. echo -e "\t$ snap set $SNAP_NAME webhooks-attributes=''"
  88. echo -e "\n"
  89. echo -e "OAuth2 Client ID."
  90. echo -e "To enable the OAuth2 Client ID of Wekan:"
  91. echo -e "\t$ snap set $SNAP_NAME oauth2-client-id='54321abcde'"
  92. echo -e "\t-Disable the OAuth2 Client ID of Wekan:"
  93. echo -e "\t$ snap set $SNAP_NAME oauth2-client-id=''"
  94. echo -e "\n"
  95. echo -e "OAuth2 login style: popup or redirect. Default: redirect"
  96. echo -e "To enable the OAuth2 login style popup of Wekan:"
  97. echo -e "\t$ snap set $SNAP_NAME oauth2-login-style='popup'"
  98. echo -e "\t-Disable the OAuth2 login style popup of Wekan:"
  99. echo -e "\t$ snap set $SNAP_NAME oauth2-login-style='redirect'"
  100. echo -e "\n"
  101. echo -e "OAuth2 Secret."
  102. echo -e "To enable the OAuth2 Secret of Wekan:"
  103. echo -e "\t$ snap set $SNAP_NAME oauth2-secret='54321abcde'"
  104. echo -e "\t-Disable the OAuth2 Secret of Wekan:"
  105. echo -e "\t$ snap set $SNAP_NAME oauth2-secret=''"
  106. echo -e "\n"
  107. echo -e "OAuth2 Server URL."
  108. echo -e "To enable the OAuth2 Server URL of Wekan:"
  109. echo -e "\t$ snap set $SNAP_NAME oauth2-server-url='https://chat.example.com'"
  110. echo -e "\t-Disable the OAuth2 Server URL of Wekan:"
  111. echo -e "\t$ snap set $SNAP_NAME oauth2-server-url=''"
  112. echo -e "\n"
  113. echo -e "OAuth2 Authorization Endpoint."
  114. echo -e "To enable the OAuth2 Authorization Endpoint of Wekan:"
  115. echo -e "\t$ snap set $SNAP_NAME oauth2-auth-endpoint='/oauth/authorize'"
  116. echo -e "\t-Disable the OAuth2 Authorization Endpoint of Wekan:"
  117. echo -e "\t$ snap set $SNAP_NAME oauth2-auth-endpoint=''"
  118. echo -e "\n"
  119. echo -e "OAuth2 Userinfo Endpoint."
  120. echo -e "To enable the OAuth2 Userinfo Endpoint of Wekan:"
  121. echo -e "\t$ snap set $SNAP_NAME oauth2-userinfo-endpoint='/oauth/authorize'"
  122. echo -e "\t-Disable the OAuth2 Userinfo Endpoint of Wekan:"
  123. echo -e "\t$ snap set $SNAP_NAME oauth2-userinfo-endpoint=''"
  124. echo -e "\n"
  125. echo -e "OAuth2 Token Endpoint."
  126. echo -e "To enable the OAuth2 Token Endpoint of Wekan:"
  127. echo -e "\t$ snap set $SNAP_NAME oauth2-token-endpoint='/oauth/token'"
  128. echo -e "\t-Disable the OAuth2 Token Endpoint of Wekan:"
  129. echo -e "\t$ snap set $SNAP_NAME oauth2-token-endpoint=''"
  130. echo -e "\n"
  131. echo -e "OAuth2 ID Token Whitelist Fields."
  132. echo -e "To enable the OAuth2 ID Token Whitelist Fields of Wekan:"
  133. echo -e "\t$ snap set $SNAP_NAME oauth2-id-token-whitelist-fields='[]'"
  134. echo -e "\t-Disable the OAuth2 ID Token Whitelist Fields of Wekan:"
  135. echo -e "\t$ snap set $SNAP_NAME oauth2-id-token-whitelist-fields=''"
  136. echo -e "\n"
  137. echo -e "OAuth2 Request Permissions."
  138. echo -e "To enable the OAuth2 Request Permissions of Wekan:"
  139. echo -e "\t$ snap set $SNAP_NAME oauth2-request-permissions=\"'openid profile email'\""
  140. echo -e "\t-Disable the OAuth2 Request Permissions of Wekan:"
  141. echo -e "\t$ snap set $SNAP_NAME oauth2-request-permissions=''"
  142. echo -e "\n"
  143. echo -e "OAuth2 ID Mapping."
  144. echo -e "To enable the OAuth2 ID Mapping of Wekan:"
  145. echo -e "\t$ snap set $SNAP_NAME oauth2-id-map='username.uid'"
  146. echo -e "\t-Disable the OAuth2 ID Mapping of Wekan:"
  147. echo -e "\t$ snap set $SNAP_NAME oauth2-id-map=''"
  148. echo -e "\n"
  149. echo -e "OAuth2 Username Mapping."
  150. echo -e "To enable the OAuth2 Username Mapping of Wekan:"
  151. echo -e "\t$ snap set $SNAP_NAME oauth2-username-map='username'"
  152. echo -e "\t-Disable the OAuth2 Username Mapping of Wekan:"
  153. echo -e "\t$ snap set $SNAP_NAME oauth2-username-map=''"
  154. echo -e "\n"
  155. echo -e "OAuth2 Fullname Mapping."
  156. echo -e "To enable the OAuth2 Fullname Mapping of Wekan:"
  157. echo -e "\t$ snap set $SNAP_NAME oauth2-fullname-map='fullname'"
  158. echo -e "\t-Disable the OAuth2 Fullname Mapping of Wekan:"
  159. echo -e "\t$ snap set $SNAP_NAME oauth2-fullname-map=''"
  160. echo -e "\n"
  161. echo -e "OAuth2 Email Mapping."
  162. echo -e "To enable the OAuth2 Email Mapping of Wekan:"
  163. echo -e "\t$ snap set $SNAP_NAME oauth2-email-map='email'"
  164. echo -e "\t-Disable the OAuth2 Email Mapping of Wekan:"
  165. echo -e "\t$ snap set $SNAP_NAME oauth2-email-map=''"
  166. echo -e "\n"
  167. echo -e "Ldap Enable."
  168. echo -e "To enable the ldap of Wekan:"
  169. echo -e "\t$ snap set $SNAP_NAME ldap-enable='true'"
  170. echo -e "\t-Disable the ldap of Wekan:"
  171. echo -e "\t$ snap set $SNAP_NAME ldap-enable='false'"
  172. echo -e "\n"
  173. echo -e "Ldap Port."
  174. echo -e "The port of the ldap server:"
  175. echo -e "\t$ snap set $SNAP_NAME ldap-port='12345'"
  176. echo -e "\n"
  177. echo -e "Ldap Host."
  178. echo -e "The host server for the LDAP server:"
  179. echo -e "\t$ snap set $SNAP_NAME ldap-host='localhost'"
  180. echo -e "\n"
  181. echo -e "Ldap Base Dn."
  182. echo -e "The base DN for the LDAP Tree:"
  183. echo -e "\t$ snap set $SNAP_NAME ldap-basedn='ou=user,dc=example,dc=org'"
  184. echo -e "\n"
  185. echo -e "Ldap Login Fallback."
  186. echo -e "Fallback on the default authentication method:"
  187. echo -e "\t$ snap set $SNAP_NAME ldap-login-fallback='true'"
  188. echo -e "\n"
  189. echo -e "Ldap Reconnect."
  190. echo -e "Reconnect to the server if the connection is lost:"
  191. echo -e "\t$ snap set $SNAP_NAME ldap-reconnect='false'"
  192. echo -e "\n"
  193. echo -e "Ldap Timeout."
  194. echo -e "Overall timeout, in milliseconds:"
  195. echo -e "\t$ snap set $SNAP_NAME ldap-timeout='12345'"
  196. echo -e "\n"
  197. echo -e "Ldap Idle Timeout."
  198. echo -e "Specifies the timeout for idle LDAP connections in milliseconds:"
  199. echo -e "\t$ snap set $SNAP_NAME ldap-idle-timeout='12345'"
  200. echo -e "\n"
  201. echo -e "Ldap Connect Timeout."
  202. echo -e "Connection timeout, in milliseconds:"
  203. echo -e "\t$ snap set $SNAP_NAME ldap-connect-timeout='12345'"
  204. echo -e "\n"
  205. echo -e "Ldap Authentication."
  206. echo -e "If the LDAP needs a user account to search:"
  207. echo -e "\t$ snap set $SNAP_NAME ldap-authentication='true'"
  208. echo -e "\n"
  209. echo -e "Ldap Authentication User Dn."
  210. echo -e "The search user Dn:"
  211. echo -e "\t$ snap set $SNAP_NAME ldap-authentication-userdn='cn=admin,dc=example,dc=org'"
  212. echo -e "\n"
  213. echo -e "Ldap Authentication Password."
  214. echo -e "The password for the search user:"
  215. echo -e "\t$ snap set $SNAP_NAME ldap-authentication-password='admin'"
  216. echo -e "\n"
  217. echo -e "Ldap Log Enabled."
  218. echo -e "Enable logs for the module:"
  219. echo -e "\t$ snap set $SNAP_NAME ldap-log-enabled='true'"
  220. echo -e "\n"
  221. echo -e "Ldap Background Sync."
  222. echo -e "If the sync of the users should be done in the background:"
  223. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync='true'"
  224. echo -e "\n"
  225. echo -e "Ldap Background Sync Interval."
  226. echo -e "At which interval does the background task sync in milliseconds:"
  227. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-interval='12345'"
  228. echo -e "\n"
  229. echo -e "Ldap Background Sync Keep Existant Users Updated."
  230. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-keep-existant-users-updated='true'"
  231. echo -e "\n"
  232. echo -e "Ldap Background Sync Import New Users."
  233. echo -e "\t$ snap set $SNAP_NAME ldap-background-sync-import-new-users='true'"
  234. echo -e "\n"
  235. echo -e "Ldap Encryption."
  236. echo -e "Allow LDAPS:"
  237. echo -e "\t$ snap set $SNAP_NAME ldap-encryption='ssl'"
  238. echo -e "\n"
  239. echo -e "Ldap Ca Cert."
  240. echo -e "The certification for the LDAPS server:"
  241. echo -e "\t$ snap set $SNAP_NAME ldap-ca-cert=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----"
  242. echo -e "\n"
  243. echo -e "Ldap Reject Unauthorized."
  244. echo -e "Reject Unauthorized Certificate:"
  245. echo -e "\t$ snap set $SNAP_NAME ldap-reject-unauthorized='true'"
  246. echo -e "\n"
  247. echo -e "Option to login to the LDAP server with the user's own username and password, instead of an administrator key. Default: false (use administrator key)."
  248. echo -e "\t$ snap set $SNAP_NAME ldap-user-authentication='true'"
  249. echo -e "\n"
  250. echo -e "Ldap User Search Filter."
  251. echo -e "Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed:"
  252. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-filter=''"
  253. echo -e "\n"
  254. echo -e "Ldap User Search Scope."
  255. echo -e "base (search only in the provided DN), one (search only in the provided DN and one level deep), or sub (search the whole subtree). Example: one"
  256. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-scope=one"
  257. echo -e "\n"
  258. echo -e "Ldap User Search Field."
  259. echo -e "Which field is used to find the user:"
  260. echo -e "\t$ snap set $SNAP_NAME ldap-user-search-field='uid'"
  261. echo -e "\n"
  262. echo -e "Ldap Search Page Size."
  263. echo -e "Used for pagination (0=unlimited):"
  264. echo -e "\t$ snap set $SNAP_NAME ldap-search-page-size='12345'"
  265. echo -e "\n"
  266. echo -e "Ldap Search Size Limit."
  267. echo -e "The limit number of entries (0=unlimited):"
  268. echo -e "\t$ snap set $SNAP_NAME ldap-search-size-limit='12345'"
  269. echo -e "\n"
  270. echo -e "Ldap Group Filter Enable."
  271. echo -e "Enable group filtering:"
  272. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-enable='true'"
  273. echo -e "\n"
  274. echo -e "Ldap Group Filter ObjectClass."
  275. echo -e "The object class for filtering:"
  276. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-objectclass='group'"
  277. echo -e "\n"
  278. echo -e "Ldap Group Filter Id Attribute."
  279. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-id-attribute=''"
  280. echo -e "\n"
  281. echo -e "Ldap Group Filter Member Attribute."
  282. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-member-attribute=''"
  283. echo -e "\n"
  284. echo -e "Ldap Group Filter Member Format."
  285. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-member-format=''"
  286. echo -e "\n"
  287. echo -e "Ldap Group Filter Group Name."
  288. echo -e "\t$ snap set $SNAP_NAME ldap-group-filter-group-name=''"
  289. echo -e "\n"
  290. echo -e "Ldap Unique Identifier Field."
  291. echo -e "This field is sometimes class GUID (Globally Unique Identifier):"
  292. echo -e "\t$ snap set $SNAP_NAME ldap-unique-identifier-field=guid"
  293. echo -e "\n"
  294. echo -e "Ldap Utf8 Names Slugify."
  295. echo -e "Convert the username to utf8:"
  296. echo -e "\t$ snap set $SNAP_NAME ldap-utf8-names-slugify='false'"
  297. echo -e "\n"
  298. echo -e "Ldap Username Field."
  299. echo -e "Which field contains the ldap username:"
  300. echo -e "\t$ snap set $SNAP_NAME ldap-username-field='username'"
  301. echo -e "\n"
  302. echo -e "Ldap Fullname Field."
  303. echo -e "Which field contains the ldap fullname:"
  304. echo -e "\t$ snap set $SNAP_NAME ldap-fullname-field='fullname'"
  305. echo -e "\n"
  306. echo -e "Ldap Merge Existing Users."
  307. echo -e "\t$ snap set $SNAP_NAME ldap-merge-existing-users='true'"
  308. echo -e "\n"
  309. echo -e "Ldap Email Match Enable."
  310. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-enable='true'"
  311. echo -e "\n"
  312. echo -e "Ldap Email Match Require."
  313. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-require='true'"
  314. echo -e "\n"
  315. echo -e "Ldap Email Match Verified."
  316. echo -e "\t$ snap set $SNAP_NAME ldap-email-match-verfied='false'"
  317. echo -e "\n"
  318. echo -e "Ldap Fullname Field."
  319. echo -e "Which field contains the ldap email address:"
  320. echo -e "\t$ snap set $SNAP_NAME ldap-fullname-field='fullname'"
  321. echo -e "\n"
  322. echo -e "Ldap Sync User Data."
  323. echo -e "Enable synchronization of user data:"
  324. echo -e "\t$ snap set $SNAP_NAME ldap-sync-user-data='true'"
  325. echo -e "\n"
  326. echo -e "Ldap Sync User Data Fieldmap."
  327. echo -e "A field map for the matching:"
  328. echo -e "\t$ snap set $SNAP_NAME ldap-sync-user-data-fieldmap={\"cn\":\"name\", \"mail\":\"email\"}"
  329. echo -e "\n"
  330. echo -e "Ldap Sync Group Roles."
  331. echo -e "\t$ snap set $SNAP_NAME ldap-sync-group-roles=''"
  332. echo -e "\n"
  333. echo -e "Ldap Default Domain."
  334. echo -e "The default domain of the ldap it is used to create email if the field is not map correctly with the LDAP_SYNC_USER_DATA_FIELDMAP:"
  335. echo -e "\t$ snap set $SNAP_NAME ldap-default-domain=''"
  336. echo -e "\n"
  337. echo -e "Enable/Disable syncing of admin status based on LDAP groups."
  338. echo -e "\t$ snap set $SNAP_NAME ldap-sync-admin-status='true'"
  339. echo -e "\n"
  340. echo -e "Comma separated list of admin group names to sync."
  341. echo -e "\t$ snap set $SNAP_NAME ldap-sync-admin-groups='group1,group2'"
  342. echo -e "\n"
  343. echo -e "Logout with timer."
  344. echo -e "Enable or not the option that allows to disconnect an user after a given time:"
  345. echo -e "\t$ snap set $SNAP_NAME logout-with-timer='true'"
  346. echo -e "\n"
  347. echo -e "Login to LDAP automatically with HTTP header."
  348. echo -e "In below example for siteminder, at right side of = is header name."
  349. echo -e "\t$ snap set $SNAP_NAME header-login-id='HEADERUID'"
  350. echo -e "\t$ snap set $SNAP_NAME header-login-firstname='HEADERFIRSTNAME'"
  351. echo -e "\t$ snap set $SNAP_NAME header-login-lastname='HEADERLASTNAME'"
  352. echo -e "\t$ snap set $SNAP_NAME header-login-email='HEADEREMAILADDRESS'"
  353. echo -e "\n"
  354. echo -e "Logout in."
  355. echo -e "Logout in how many days:"
  356. echo -e "\t$ snap set $SNAP_NAME logout-in='1'"
  357. echo -e "\n"
  358. echo -e "Logout on hours."
  359. echo -e "Logout in how many hours:"
  360. echo -e "\t$ snap set $SNAP_NAME logout-on-hours='9'"
  361. echo -e "\n"
  362. echo -e "Logout on minutes."
  363. echo -e "Logout in how many minutes:"
  364. echo -e "\t$ snap set $SNAP_NAME logout-on-minutes='5'"
  365. echo -e "\n"
  366. echo -e "Default authentication method."
  367. echo -e "The default authentication method used if a user does not exist to create and authenticate. Method can be password or ldap."
  368. echo -e "\t$ snap set $SNAP_NAME default-authentication-method='ldap'"
  369. echo -e "\n"
  370. # parse config file for supported settings keys
  371. echo -e "wekan supports settings keys"
  372. echo -e "values can be changed by calling\n$ snap set $SNAP_NAME <key name>='<key value>'"
  373. echo -e "list of supported keys:"
  374. for key in ${keys[@]}
  375. do
  376. default_value="DEFAULT_$key"
  377. description="DESCRIPTION_$key"
  378. snappy_key="KEY_$key"
  379. echo -e "\t${!snappy_key}: ${!description}"
  380. if [ "x" == "x${!key}" ]; then
  381. echo -e "\t\tNo value set, using default value: '${!default_value}'"
  382. else
  383. echo -e "\t\tCurrent value set to: '${!key}', (default value: '${!default_value}')"
  384. fi
  385. done
  386. echo -e "\n!!!! Some changes result in restart of some or all services, use with caution !!!!!"