start-wekan.sh 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. # If you want to restart even on crash, uncomment while and done lines.
  2. #while true; do
  3. cd ~/repos/wekan/.build/bundle
  4. #---------------------------------------------
  5. # Debug OIDC OAuth2 etc.
  6. #export export DEBUG=true
  7. #---------------------------------------------
  8. export MONGO_URL='mongodb://127.0.0.1:27017/admin'
  9. # ROOT_URL EXAMPLES FOR WEBSERVERS: https://github.com/wekan/wekan/wiki/Settings
  10. # Production: https://example.com/wekan
  11. # Local: http://localhost:3000
  12. #export ipaddress=$(ifdata -pa eth0)
  13. export ROOT_URL='http://localhost'
  14. #---------------------------------------------
  15. # Working email IS NOT REQUIRED to use Wekan.
  16. # https://github.com/wekan/wekan/wiki/Adding-users
  17. # https://github.com/wekan/wekan/wiki/Troubleshooting-Mail
  18. # https://github.com/wekan/wekan-mongodb/blob/master/docker-compose.yml
  19. export MAIL_URL='smtp://user:pass@mailserver.example.com:25/'
  20. export MAIL_FROM='Wekan Support <support@example.com>'
  21. # This is local port where Wekan Node.js runs, same as below on Caddyfile settings.
  22. export PORT=80
  23. #---------------------------------------------
  24. # Wekan Export Board works when WITH_API='true'.
  25. # If you disable Wekan API, Export Board does not work.
  26. export WITH_API='true'
  27. #---------------------------------------------------------------
  28. # ==== PASSWORD BRUTE FORCE PROTECTION ====
  29. #https://atmospherejs.com/lucasantoniassi/accounts-lockout
  30. #Defaults below. Uncomment to change. wekan/server/accounts-lockout.js
  31. #export ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE=3
  32. #export ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD=60
  33. #export ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW=15
  34. #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE=3
  35. #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
  36. #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
  37. #---------------------------------------------------------------
  38. # ==== RICH TEXT EDITOR IN CARD COMMENTS ====
  39. # https://github.com/wekan/wekan/pull/2560
  40. export RICHER_CARD_COMMENT_EDITOR=true
  41. #---------------------------------------------------------------
  42. # ==== CARD OPENED, SEND WEBHOOK MESSAGE ====
  43. export CARD_OPENED_WEBHOOK_ENABLED=false
  44. #---------------------------------------------------------------
  45. # ==== Allow to shrink attached/pasted image ====
  46. # https://github.com/wekan/wekan/pull/2544
  47. #export MAX_IMAGE_PIXEL=1024
  48. #export IMAGE_COMPRESS_RATIO=80
  49. #---------------------------------------------------------------
  50. # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
  51. # https://github.com/wekan/wekan/pull/2541
  52. # Introduced a system env var BIGEVENTS_PATTERN default as "NONE",
  53. # so any activityType matches the pattern, system will send out
  54. # notifications to all board members no matter they are watching
  55. # or tracking the board or not. Owner of the wekan server can
  56. # disable the feature by setting this variable to "NONE" or
  57. # change the pattern to any valid regex. i.e. '|' delimited
  58. # activityType names.
  59. # a) Example
  60. #export BIGEVENTS_PATTERN=due
  61. # b) All
  62. #export BIGEVENTS_PATTERN=received|start|due|end
  63. # c) Disabled
  64. export BIGEVENTS_PATTERN=NONE
  65. #---------------------------------------------------------------
  66. # ==== EMAIL DUE DATE NOTIFICATION =====
  67. # https://github.com/wekan/wekan/pull/2536
  68. # System timelines will be showing any user modification for
  69. # dueat startat endat receivedat, also notification to
  70. # the watchers and if any card is due, about due or past due.
  71. #
  72. # Notify due days, default 2 days before and after. 0 = due notifications disabled. Default: 2
  73. #export NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=2
  74. #
  75. # Notify due at hour of day. Default every morning at 8am. Can be 0-23.
  76. # If env variable has parsing error, use default. Notification sent to watchers.
  77. #export NOTIFY_DUE_AT_HOUR_OF_DAY=8
  78. #-----------------------------------------------------------------
  79. # ==== EMAIL NOTIFICATION TIMEOUT, ms =====
  80. # Defaut: 30000 ms = 30s
  81. #export EMAIL_NOTIFICATION_TIMEOUT=30000
  82. #-----------------------------------------------------------------
  83. # CORS: Set Access-Control-Allow-Origin header. Example: *
  84. #export CORS=*
  85. # To enable the Set Access-Control-Allow-Headers header. "Authorization,Content-Type" is required for cross-origin use of the API.
  86. #export CORS_ALLOW_HEADERS=Authorization,Content-Type
  87. # To enable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: *
  88. #export CORS_EXPOSE_HEADERS=*
  89. #---------------------------------------------
  90. ## Optional: Integration with Matomo https://matomo.org that is installed to your server
  91. ## The address of the server where Matomo is hosted:
  92. ##export MATOMO_ADDRESS=https://example.com/matomo
  93. #export MATOMO_ADDRESS=
  94. ## The value of the site ID given in Matomo server for Wekan
  95. # Example: export MATOMO_SITE_ID=123456789
  96. #export MATOMO_SITE_ID=''
  97. ## The option do not track which enables users to not be tracked by matomo"
  98. #Example: export MATOMO_DO_NOT_TRACK=false
  99. #export MATOMO_DO_NOT_TRACK=true
  100. ## The option that allows matomo to retrieve the username:
  101. # Example: export MATOMO_WITH_USERNAME=true
  102. #export MATOMO_WITH_USERNAME='false'
  103. # Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside.
  104. # Setting this to false is not recommended, it also disables all other browser policy protections
  105. # and allows all iframing etc. See wekan/server/policy.js
  106. # Default value: true
  107. export BROWSER_POLICY_ENABLED=true
  108. # When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside.
  109. # Example: export TRUSTED_URL=http://example.com
  110. export TRUSTED_URL=''
  111. # What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId .
  112. # Example: export WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
  113. export WEBHOOKS_ATTRIBUTES=''
  114. #---------------------------------------------
  115. # ==== OAUTH2 AZURE ====
  116. # https://github.com/wekan/wekan/wiki/Azure
  117. # 1) Register the application with Azure. Make sure you capture
  118. # the application ID as well as generate a secret key.
  119. # 2) Configure the environment variables. This differs slightly
  120. # by installation type, but make sure you have the following:
  121. #export OAUTH2_ENABLED=true
  122. # OAuth2 login style: popup or redirect.
  123. #export OAUTH2_LOGIN_STYLE=redirect
  124. # Application GUID captured during app registration:
  125. #export OAUTH2_CLIENT_ID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
  126. # Secret key generated during app registration:
  127. #export OAUTH2_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  128. #export OAUTH2_SERVER_URL=https://login.microsoftonline.com/
  129. #export OAUTH2_AUTH_ENDPOINT=/oauth2/v2.0/authorize
  130. #export OAUTH2_USERINFO_ENDPOINT=https://graph.microsoft.com/oidc/userinfo
  131. #export OAUTH2_TOKEN_ENDPOINT=/oauth2/v2.0/token
  132. # OAUTH2 ID Token Whitelist Fields.
  133. #export OAUTH2_ID_TOKEN_WHITELIST_FIELDS=[]
  134. # OAUTH2 Request Permissions.
  135. #export OAUTH2_REQUEST_PERMISSIONS='openid profile email'
  136. # The claim name you want to map to the unique ID field:
  137. #export OAUTH2_ID_MAP=email
  138. # The claim name you want to map to the username field:
  139. #export OAUTH2_USERNAME_MAP=email
  140. # The claim name you want to map to the full name field:
  141. #export OAUTH2_FULLNAME_MAP=name
  142. # Tthe claim name you want to map to the email field:
  143. #export OAUTH2_EMAIL_MAP=email
  144. #-----------------------------------------------------------------
  145. # ==== OAUTH2 KEYCLOAK ====
  146. # https://github.com/wekan/wekan/wiki/Keycloak <== MAPPING INFO, REQUIRED
  147. #export OAUTH2_ENABLED=true
  148. # OAuth2 login style: popup or redirect.
  149. #export OAUTH2_LOGIN_STYLE=redirect
  150. #export OAUTH2_CLIENT_ID=<Keycloak create Client ID>
  151. #export OAUTH2_SERVER_URL=<Keycloak server name>/auth
  152. #export OAUTH2_AUTH_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/auth
  153. #export OAUTH2_USERINFO_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/userinfo
  154. #export OAUTH2_TOKEN_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/token
  155. #export OAUTH2_SECRET=<keycloak client secret>
  156. #-----------------------------------------------------------------
  157. # ==== OAUTH2 DOORKEEPER ====
  158. # OAuth2 docs: https://github.com/wekan/wekan/wiki/OAuth2
  159. # https://github.com/wekan/wekan/issues/1874
  160. # https://github.com/wekan/wekan/wiki/OAuth2
  161. # Enable the OAuth2 connection
  162. #export OAUTH2_ENABLED=true
  163. # OAuth2 login style: popup or redirect.
  164. #export OAUTH2_LOGIN_STYLE=redirect
  165. # OAuth2 Client ID.
  166. #export OAUTH2_CLIENT_ID=abcde12345
  167. # OAuth2 Secret.
  168. #export OAUTH2_SECRET=54321abcde
  169. # OAuth2 Server URL.
  170. #export OAUTH2_SERVER_URL=https://chat.example.com
  171. # OAuth2 Authorization Endpoint.
  172. #export OAUTH2_AUTH_ENDPOINT=/oauth/authorize
  173. # OAuth2 Userinfo Endpoint.
  174. #export OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
  175. # OAuth2 Token Endpoint.
  176. #export OAUTH2_TOKEN_ENDPOINT=/oauth/token
  177. # OAuth2 ID Mapping
  178. #export OAUTH2_ID_MAP=
  179. # OAuth2 Username Mapping
  180. #export OAUTH2_USERNAME_MAP=
  181. # OAuth2 Fullname Mapping
  182. #export OAUTH2_FULLNAME_MAP=
  183. # OAuth2 Email Mapping
  184. #export OAUTH2_EMAIL_MAP=
  185. #---------------------------------------------
  186. # LDAP_ENABLE : Enable or not the connection by the LDAP
  187. # example : export LDAP_ENABLE=true
  188. #export LDAP_ENABLE=false
  189. # LDAP_PORT : The port of the LDAP server
  190. # example : export LDAP_PORT=389
  191. #export LDAP_PORT=389
  192. # LDAP_HOST : The host server for the LDAP server
  193. # example : export LDAP_HOST=localhost
  194. #export LDAP_HOST=
  195. # LDAP_BASEDN : The base DN for the LDAP Tree
  196. # example : export LDAP_BASEDN=ou=user,dc=example,dc=org
  197. #export LDAP_BASEDN=
  198. # LDAP_LOGIN_FALLBACK : Fallback on the default authentication method
  199. # example : export LDAP_LOGIN_FALLBACK=true
  200. #export LDAP_LOGIN_FALLBACK=false
  201. # LDAP_RECONNECT : Reconnect to the server if the connection is lost
  202. # example : export LDAP_RECONNECT=false
  203. #export LDAP_RECONNECT=true
  204. # LDAP_TIMEOUT : Overall timeout, in milliseconds
  205. # example : export LDAP_TIMEOUT=12345
  206. #export LDAP_TIMEOUT=10000
  207. # LDAP_IDLE_TIMEOUT : Specifies the timeout for idle LDAP connections in milliseconds
  208. # example : export LDAP_IDLE_TIMEOUT=12345
  209. #export LDAP_IDLE_TIMEOUT=10000
  210. # LDAP_CONNECT_TIMEOUT : Connection timeout, in milliseconds
  211. # example : export LDAP_CONNECT_TIMEOUT=12345
  212. #export LDAP_CONNECT_TIMEOUT=10000
  213. # LDAP_AUTHENTIFICATION : If the LDAP needs a user account to search
  214. # example : export LDAP_AUTHENTIFICATION=true
  215. #export LDAP_AUTHENTIFICATION=false
  216. # LDAP_AUTHENTIFICATION_USERDN : The search user DN
  217. # example : export LDAP_AUTHENTIFICATION_USERDN=cn=admin,dc=example,dc=org
  218. #export LDAP_AUTHENTIFICATION_USERDN=
  219. # LDAP_AUTHENTIFICATION_PASSWORD : The password for the search user
  220. # example : AUTHENTIFICATION_PASSWORD=admin
  221. #export LDAP_AUTHENTIFICATION_PASSWORD=
  222. # LDAP_LOG_ENABLED : Enable logs for the module
  223. # example : export LDAP_LOG_ENABLED=true
  224. #export LDAP_LOG_ENABLED=false
  225. # LDAP_BACKGROUND_SYNC : If the sync of the users should be done in the background
  226. # example : export LDAP_BACKGROUND_SYNC=true
  227. #export LDAP_BACKGROUND_SYNC=false
  228. # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
  229. # At which interval does the background task sync in milliseconds.
  230. # Leave this unset, so it uses default, and does not crash.
  231. # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
  232. export LDAP_BACKGROUND_SYNC_INTERVAL=''
  233. # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
  234. # example : export LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
  235. #export LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
  236. # LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS :
  237. # example : export LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=true
  238. #export LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false
  239. # LDAP_ENCRYPTION : If using LDAPS
  240. # example : export LDAP_ENCRYPTION=ssl
  241. #export LDAP_ENCRYPTION=false
  242. # LDAP_CA_CERT : The certification for the LDAPS server. Certificate needs to be included in this docker-compose.yml file.
  243. # example : export LDAP_CA_CERT=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----
  244. #export LDAP_CA_CERT=
  245. # LDAP_REJECT_UNAUTHORIZED : Reject Unauthorized Certificate
  246. # example : export LDAP_REJECT_UNAUTHORIZED=true
  247. #export LDAP_REJECT_UNAUTHORIZED=false
  248. # 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).
  249. #export LDAP_USER_AUTHENTICATION=true
  250. # Which field is used to find the user for the user authentication. Default: uid.
  251. #export LDAP_USER_AUTHENTICATION_FIELD=uid
  252. # LDAP_USER_SEARCH_FILTER : Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed
  253. # example : export LDAP_USER_SEARCH_FILTER=
  254. #export LDAP_USER_SEARCH_FILTER=
  255. # LDAP_USER_SEARCH_SCOPE : base (search only in the provided DN), one (search only in the provided DN and one level deep), or sub (search the whole subtree)
  256. # example : export LDAP_USER_SEARCH_SCOPE=one
  257. #export LDAP_USER_SEARCH_SCOPE=
  258. # LDAP_USER_SEARCH_FIELD : Which field is used to find the user
  259. # example : export LDAP_USER_SEARCH_FIELD=uid
  260. #export LDAP_USER_SEARCH_FIELD=
  261. # LDAP_SEARCH_PAGE_SIZE : Used for pagination (0=unlimited)
  262. # example : export LDAP_SEARCH_PAGE_SIZE=12345
  263. #export LDAP_SEARCH_PAGE_SIZE=0
  264. # LDAP_SEARCH_SIZE_LIMIT : The limit number of entries (0=unlimited)
  265. # example : export LDAP_SEARCH_SIZE_LIMIT=12345
  266. #export LDAP_SEARCH_SIZE_LIMIT=0
  267. # LDAP_GROUP_FILTER_ENABLE : Enable group filtering
  268. # example : export LDAP_GROUP_FILTER_ENABLE=true
  269. #export LDAP_GROUP_FILTER_ENABLE=false
  270. # LDAP_GROUP_FILTER_OBJECTCLASS : The object class for filtering
  271. # example : export LDAP_GROUP_FILTER_OBJECTCLASS=group
  272. #export LDAP_GROUP_FILTER_OBJECTCLASS=
  273. # LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE :
  274. # example :
  275. #export LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE=
  276. # LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE :
  277. # example :
  278. #export LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE=
  279. # LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT :
  280. # example :
  281. #export LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT=
  282. # LDAP_GROUP_FILTER_GROUP_NAME :
  283. # example :
  284. #export LDAP_GROUP_FILTER_GROUP_NAME=
  285. # LDAP_UNIQUE_IDENTIFIER_FIELD : This field is sometimes class GUID (Globally Unique Identifier)
  286. # example : export LDAP_UNIQUE_IDENTIFIER_FIELD=guid
  287. #export LDAP_UNIQUE_IDENTIFIER_FIELD=
  288. # LDAP_UTF8_NAMES_SLUGIFY : Convert the username to utf8
  289. # example : export LDAP_UTF8_NAMES_SLUGIFY=false
  290. #export LDAP_UTF8_NAMES_SLUGIFY=true
  291. # LDAP_USERNAME_FIELD : Which field contains the ldap username
  292. # example : export LDAP_USERNAME_FIELD=username
  293. #export LDAP_USERNAME_FIELD=
  294. # LDAP_FULLNAME_FIELD : Which field contains the ldap fullname
  295. # example : export LDAP_FULLNAME_FIELD=fullname
  296. #export LDAP_FULLNAME_FIELD=
  297. # LDAP_MERGE_EXISTING_USERS :
  298. # example : export LDAP_MERGE_EXISTING_USERS=true
  299. #export LDAP_MERGE_EXISTING_USERS=false
  300. # LDAP_EMAIL_MATCH_ENABLE : allow existing account matching by e-mail address when username does not match
  301. # example: LDAP_EMAIL_MATCH_ENABLE=true
  302. #export LDAP_EMAIL_MATCH_ENABLE=false
  303. # LDAP_EMAIL_MATCH_REQUIRE : require existing account matching by e-mail address when username does match
  304. # example: LDAP_EMAIL_MATCH_REQUIRE=true
  305. #export LDAP_EMAIL_MATCH_REQUIRE=false
  306. # LDAP_EMAIL_MATCH_VERIFIED : require existing account email address to be verified for matching
  307. # example: LDAP_EMAIL_MATCH_VERIFIED=true
  308. #export LDAP_EMAIL_MATCH_VERIFIED=false
  309. # LDAP_EMAIL_FIELD : which field contains the LDAP e-mail address
  310. # example: LDAP_EMAIL_FIELD=mail
  311. #export LDAP_EMAIL_FIELD=
  312. # LDAP_SYNC_USER_DATA :
  313. # example : export LDAP_SYNC_USER_DATA=true
  314. #export LDAP_SYNC_USER_DATA=false
  315. # LDAP_SYNC_USER_DATA_FIELDMAP :
  316. # example : export LDAP_SYNC_USER_DATA_FIELDMAP={"cn":"name", "mail":"email"}
  317. #export LDAP_SYNC_USER_DATA_FIELDMAP=
  318. # LDAP_SYNC_GROUP_ROLES :
  319. # example :
  320. #export LDAP_SYNC_GROUP_ROLES=
  321. # LDAP_DEFAULT_DOMAIN : 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
  322. # example :
  323. #export LDAP_DEFAULT_DOMAIN=
  324. # Enable/Disable syncing of admin status based on ldap groups:
  325. #export LDAP_SYNC_ADMIN_STATUS=true
  326. # Comma separated list of admin group names.
  327. #export LDAP_SYNC_ADMIN_GROUPS=group1,group2
  328. #---------------------------------------------------------------------
  329. # Login to LDAP automatically with HTTP header.
  330. # In below example for siteminder, at right side of = is header name.
  331. #export HEADER_LOGIN_ID=HEADERUID
  332. #export HEADER_LOGIN_FIRSTNAME=HEADERFIRSTNAME
  333. #export HEADER_LOGIN_LASTNAME=HEADERLASTNAME
  334. #export HEADER_LOGIN_EMAIL=HEADEREMAILADDRESS
  335. #---------------------------------------------------------------------
  336. # LOGOUT_WITH_TIMER : Enables or not the option logout with timer
  337. # example : LOGOUT_WITH_TIMER=true
  338. #export LOGOUT_WITH_TIMER=
  339. # LOGOUT_IN : The number of days
  340. # example : LOGOUT_IN=1
  341. #export LOGOUT_IN=
  342. #export LOGOUT_ON_HOURS=
  343. # LOGOUT_ON_MINUTES : The number of minutes
  344. # example : LOGOUT_ON_MINUTES=55
  345. #export LOGOUT_ON_MINUTES=
  346. node main.js & >> ~/repos/wekan.log
  347. cd ~/repos
  348. #done