start-wekan.bat 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. @ECHO OFF
  2. REM ------------------------------------------------------------
  3. REM # Debug OIDC OAuth2 etc.
  4. REM SET DEBUG=true
  5. REM ------------------------------------------------------------
  6. SET ROOT_URL=http://localhost
  7. SET PORT=80
  8. SET MONGO_URL=mongodb://127.0.0.1:27017/wekan
  9. REM # https://github.com/wekan/wekan/wiki/Troubleshooting-Mail
  10. REM SET MAIL_URL=smtps://username:password@email-smtp.eu-west-1.amazonaws.com:587/
  11. REM SET MAIL_FROM="Wekan Boards <info@example.com>"
  12. REM # ==== NUMBER OF SEARCH RESULTS PER PAGE BY DEFAULT ====
  13. REM SET RESULTS_PER_PAGE=20
  14. REM # If you disable Wekan API with false, Export Board does not work.
  15. SET WITH_API=true
  16. REM # ==== RICH TEXT EDITOR IN CARD COMMENTS ====
  17. REM # https://github.com/wekan/wekan/pull/2560
  18. SET RICHER_CARD_COMMENT_EDITOR=false
  19. REM # ==== CARD OPENED, SEND WEBHOOK MESSAGE ====
  20. SET CARD_OPENED_WEBHOOK_ENABLED=false
  21. REM # ==== Allow to shrink attached/pasted image ====
  22. REM # https://github.com/wekan/wekan/pull/2544
  23. REM SET MAX_IMAGE_PIXEL=1024
  24. REM SET IMAGE_COMPRESS_RATIO=80
  25. REM # ==== PASSWORD BRUTE FORCE PROTECTION ====
  26. REM #https://atmospherejs.com/lucasantoniassi/accounts-lockout
  27. REM #Defaults below. Uncomment to change. wekan/server/accounts-lockout.js
  28. REM SET ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE=3
  29. REM SET ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD=60
  30. REM SET ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW=15
  31. REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE=3
  32. REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
  33. REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
  34. REM # ==== NOTIFICATION TRAY AFTER READ DAYS BEFORE REMOVE =====
  35. REM # Number of days after a notification is read before we remove it.
  36. REM # Default: 2
  37. REM SET NOTIFICATION_TRAY_AFTER_READ_DAYS_BEFORE_REMOVE=2
  38. REM # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
  39. REM # https://github.com/wekan/wekan/pull/2541
  40. REM # Introduced a system env var BIGEVENTS_PATTERN default as "NONE",
  41. REM # so any activityType matches the pattern, system will send out
  42. REM # notifications to all board members no matter they are watching
  43. REM # or tracking the board or not. Owner of the wekan server can
  44. REM # disable the feature by setting this variable to "NONE" or
  45. REM # change the pattern to any valid regex. i.e. '|' delimited
  46. REM # activityType names.
  47. REM # a) Example
  48. REM SET BIGEVENTS_PATTERN=due
  49. REM # b) All
  50. REM SET BIGEVENTS_PATTERN=received|start|due|end
  51. REM # c) Disabled
  52. SET BIGEVENTS_PATTERN=NONE
  53. REM # ==== EMAIL DUE DATE NOTIFICATION =====
  54. REM # https://github.com/wekan/wekan/pull/2536
  55. REM # System timelines will be showing any user modification for
  56. REM # dueat startat endat receivedat, also notification to
  57. REM # the watchers and if any card is due, about due or past due.
  58. REM # Notify due days, default is None.
  59. REM # SET NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=2,0
  60. REM # Notify due at hour of day. Default every morning at 8am. Can be 0-23.
  61. REM # If env variable has parsing error, use default. Notification sent to watchers.
  62. REM SET NOTIFY_DUE_AT_HOUR_OF_DAY=8
  63. REM # ==== EMAIL NOTIFICATION TIMEOUT, ms =====
  64. REM # Defaut: 30000 ms = 30s
  65. REM SET EMAIL_NOTIFICATION_TIMEOUT=30000
  66. REM # CORS: Set Access-Control-Allow-Origin header. Example: *
  67. REM SET CORS=*
  68. REM # To enable the Set Access-Control-Allow-Headers header. "Authorization,Content-Type" is required for cross-origin use of the API.
  69. REM SET CORS_ALLOW_HEADERS=Authorization,Content-Type
  70. REM # To enable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: *
  71. REM SET CORS_EXPOSE_HEADERS=*
  72. REM # Optional: Integration with Matomo https://matomo.org that is installed to your server
  73. REM # The address of the server where Matomo is hosted.
  74. REM # example: - MATOMO_ADDRESS=https://example.com/matomo
  75. REM SET MATOMO_ADDRESS=
  76. REM # The value of the site ID given in Matomo server for Wekan
  77. REM # example: - MATOMO_SITE_ID=12345
  78. REM SET MATOMO_SITE_ID=
  79. REM # The option do not track which enables users to not be tracked by matomo
  80. REM # example: - MATOMO_DO_NOT_TRACK=false
  81. REM SET MATOMO_DO_NOT_TRACK=
  82. REM # The option that allows matomo to retrieve the username:
  83. REM # example: MATOMO_WITH_USERNAME=true
  84. REM SET MATOMO_WITH_USERNAME=false
  85. REM # Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside.
  86. REM # Setting this to false is not recommended, it also disables all other browser policy protections
  87. REM # and allows all iframing etc. See wekan/server/policy.js
  88. SET BROWSER_POLICY_ENABLED=true
  89. REM # When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside.
  90. REM SET TRUSTED_URL=
  91. REM # What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId .
  92. REM # example: WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
  93. REM SET WEBHOOKS_ATTRIBUTES=
  94. REM ------------------------------------------------------------
  95. REM # OAUTH2 ORACLE on premise identity manager OIM
  96. REM SET ORACLE_OIM_ENABLED=true
  97. REM ------------------------------------------------------------
  98. REM # Enable the OAuth2 connection
  99. REM # OAuth2 docs: https://github.com/wekan/wekan/wiki/OAuth2
  100. REM # example: OAUTH2_ENABLED=true
  101. REM SET OAUTH2_ENABLED=false
  102. REM # Optional OAuth2 CA Cert, see https://github.com/wekan/wekan/issues/3299
  103. REM SET OAUTH2_CA_CERT=ABCD1234
  104. REM # Use OAuth2 ADFS additional changes. Also needs OAUTH2_ENABLED=true setting.
  105. REM SET OAUTH2_ADFS_ENABLED=false
  106. REM # OAuth2 Client ID, for example from Rocket.Chat. Example: abcde12345
  107. REM # example: OAUTH2_CLIENT_ID=abcde12345
  108. REM SET OAUTH2_CLIENT_ID=
  109. REM # OAuth2 Secret, for example from Rocket.Chat: Example: 54321abcde
  110. REM # example: OAUTH2_SECRET=54321abcde
  111. REM SET OAUTH2_SECRET=
  112. REM # OAuth2 Server URL, for example Rocket.Chat. Example: https://chat.example.com
  113. REM # example: OAUTH2_SERVER_URL=https://chat.example.com
  114. REM SET OAUTH2_SERVER_URL=
  115. REM # OAuth2 Authorization Endpoint. Example: /oauth/authorize
  116. REM # example: OAUTH2_AUTH_ENDPOINT=/oauth/authorize
  117. REM SET OAUTH2_AUTH_ENDPOINT=
  118. REM # OAuth2 Userinfo Endpoint. Example: /oauth/userinfo
  119. REM # example: OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
  120. REM SET OAUTH2_USERINFO_ENDPOINT=
  121. REM # OAuth2 Token Endpoint. Example: /oauth/token
  122. REM # example: OAUTH2_TOKEN_ENDPOINT=/oauth/token
  123. REM SET OAUTH2_TOKEN_ENDPOINT=
  124. REM # OAUTH2 ID Token Whitelist Fields.
  125. REM SET OAUTH2_ID_TOKEN_WHITELIST_FIELDS=[]
  126. REM # OAUTH2 Request Permissions.
  127. REM SET OAUTH2_REQUEST_PERMISSIONS='openid profile email'
  128. REM # OAuth2 ID Mapping
  129. REM SET OAUTH2_ID_MAP=
  130. REM # OAuth2 Username Mapping
  131. REM SET OAUTH2_USERNAME_MAP=
  132. REM # OAuth2 Fullname Mapping
  133. REM SET OAUTH2_FULLNAME_MAP=
  134. REM # OAuth2 Email Mapping
  135. REM SET OAUTH2_EMAIL_MAP=
  136. REM ------------------------------------------------------------
  137. REM # LDAP_ENABLE : Enable or not the connection by the LDAP
  138. REM # example : LDAP_ENABLE=true
  139. REM SET LDAP_ENABLE=false
  140. REM # LDAP_PORT : The port of the LDAP server
  141. REM # example : LDAP_PORT=389
  142. REM SET LDAP_PORT=389
  143. REM # LDAP_HOST : The host server for the LDAP server
  144. REM # example : LDAP_HOST=localhost
  145. REM SET LDAP_HOST=
  146. REM # LDAP_BASEDN : The base DN for the LDAP Tree
  147. REM # example : LDAP_BASEDN=ou=user,dc=example,dc=org
  148. REM SET LDAP_BASEDN=
  149. REM # LDAP_LOGIN_FALLBACK : Fallback on the default authentication method
  150. REM # example : LDAP_LOGIN_FALLBACK=true
  151. REM SET LDAP_LOGIN_FALLBACK=false
  152. REM # LDAP_RECONNECT : Reconnect to the server if the connection is lost
  153. REM # example : LDAP_RECONNECT=false
  154. REM SET LDAP_RECONNECT=true
  155. REM # LDAP_TIMEOUT : Overall timeout, in milliseconds
  156. REM # example : LDAP_TIMEOUT=12345
  157. REM SET LDAP_TIMEOUT=10000
  158. REM # LDAP_IDLE_TIMEOUT : Specifies the timeout for idle LDAP connections in milliseconds
  159. REM # example : LDAP_IDLE_TIMEOUT=12345
  160. REM SET LDAP_IDLE_TIMEOUT=10000
  161. REM # LDAP_CONNECT_TIMEOUT : Connection timeout, in milliseconds
  162. REM # example : LDAP_CONNECT_TIMEOUT=12345
  163. REM SET LDAP_CONNECT_TIMEOUT=10000
  164. REM # LDAP_AUTHENTIFICATION : If the LDAP needs a user account to search
  165. REM # example : LDAP_AUTHENTIFICATION=true
  166. REM SET LDAP_AUTHENTIFICATION=false
  167. REM # LDAP_AUTHENTIFICATION_USERDN : The search user DN
  168. REM # example: LDAP_AUTHENTIFICATION_USERDN=cn=admin,dc=example,dc=org
  169. REM SET LDAP_AUTHENTIFICATION_USERDN=
  170. REM # The search user DN - You need quotes when you have spaces in parameters
  171. REM # 2 examples:
  172. REM SET LDAP_AUTHENTIFICATION_USERDN="CN=ldap admin,CN=users,DC=domainmatter,DC=lan"
  173. REM SET LDAP_AUTHENTIFICATION_USERDN="CN=wekan_adm,OU=serviceaccounts,OU=admin,OU=prod,DC=mydomain,DC=com"
  174. REM # LDAP_AUTHENTIFICATION_PASSWORD : The password for the search user
  175. REM # example : AUTHENTIFICATION_PASSWORD=admin
  176. REM SET LDAP_AUTHENTIFICATION_PASSWORD=
  177. REM # LDAP_LOG_ENABLED : Enable logs for the module
  178. REM # example : LDAP_LOG_ENABLED=true
  179. REM SET LDAP_LOG_ENABLED=false
  180. REM # LDAP_BACKGROUND_SYNC : If the sync of the users should be done in the background
  181. REM # example : LDAP_BACKGROUND_SYNC=true
  182. REM SET LDAP_BACKGROUND_SYNC=false
  183. REM # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
  184. REM # At which interval does the background task sync in milliseconds.
  185. REM # Leave this unset, so it uses default, and does not crash.
  186. REM # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
  187. SET LDAP_BACKGROUND_SYNC_INTERVAL=''
  188. REM # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
  189. REM # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
  190. REM SET LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
  191. REM # LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS :
  192. REM # example : LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=true
  193. REM SET LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false
  194. REM # LDAP_ENCRYPTION : If using LDAPS
  195. REM # example : LDAP_ENCRYPTION=ssl
  196. REM SET LDAP_ENCRYPTION=false
  197. REM # LDAP_CA_CERT : The certification for the LDAPS server. Certificate needs to be included in this docker-compose.yml file.
  198. REM # example : LDAP_CA_CERT=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----
  199. REM SET LDAP_CA_CERT=
  200. REM # LDAP_REJECT_UNAUTHORIZED : Reject Unauthorized Certificate
  201. REM # example : LDAP_REJECT_UNAUTHORIZED=true
  202. REM SET LDAP_REJECT_UNAUTHORIZED=false
  203. REM # 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).
  204. REM SET LDAP_USER_AUTHENTICATION=true
  205. REM # Which field is used to find the user for the user authentication. Default: uid.
  206. REM SET LDAP_USER_AUTHENTICATION_FIELD=uid
  207. REM # LDAP_USER_SEARCH_FILTER : Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed
  208. REM # example : LDAP_USER_SEARCH_FILTER=
  209. REM SET LDAP_USER_SEARCH_FILTER=
  210. REM # 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)
  211. REM # example : LDAP_USER_SEARCH_SCOPE=one
  212. REM SET LDAP_USER_SEARCH_SCOPE=
  213. REM # LDAP_USER_SEARCH_FIELD : Which field is used to find the user
  214. REM # example : LDAP_USER_SEARCH_FIELD=uid
  215. REM SET LDAP_USER_SEARCH_FIELD=
  216. REM # LDAP_SEARCH_PAGE_SIZE : Used for pagination (0=unlimited)
  217. REM # example : LDAP_SEARCH_PAGE_SIZE=12345
  218. REM SET LDAP_SEARCH_PAGE_SIZE=0
  219. REM # LDAP_SEARCH_SIZE_LIMIT : The limit number of entries (0=unlimited)
  220. REM #33 example : LDAP_SEARCH_SIZE_LIMIT=12345
  221. REM SET LDAP_SEARCH_SIZE_LIMIT=0
  222. REM # LDAP_GROUP_FILTER_ENABLE : Enable group filtering
  223. REM # example : LDAP_GROUP_FILTER_ENABLE=true
  224. REM SET LDAP_GROUP_FILTER_ENABLE=false
  225. REM # LDAP_GROUP_FILTER_OBJECTCLASS : The object class for filtering
  226. REM # example : LDAP_GROUP_FILTER_OBJECTCLASS=group
  227. REM SET LDAP_GROUP_FILTER_OBJECTCLASS=
  228. REM # LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE :
  229. REM # example :
  230. REM SET LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE=
  231. REM # LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE :
  232. REM # example :
  233. REM SET LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE=
  234. REM # LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT :
  235. REM # example :
  236. REM SET LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT=
  237. REM # LDAP_GROUP_FILTER_GROUP_NAME :
  238. REM # example :
  239. REM SET LDAP_GROUP_FILTER_GROUP_NAME=
  240. REM # LDAP_UNIQUE_IDENTIFIER_FIELD : This field is sometimes class GUID (Globally Unique Identifier)
  241. REM # example : LDAP_UNIQUE_IDENTIFIER_FIELD=guid
  242. REM SET LDAP_UNIQUE_IDENTIFIER_FIELD=
  243. REM # LDAP_UTF8_NAMES_SLUGIFY : Convert the username to utf8
  244. REM # example : LDAP_UTF8_NAMES_SLUGIFY=false
  245. REM SET LDAP_UTF8_NAMES_SLUGIFY=true
  246. REM # LDAP_USERNAME_FIELD : Which field contains the ldap username
  247. REM # example : LDAP_USERNAME_FIELD=username
  248. REM SET LDAP_USERNAME_FIELD=
  249. REM # LDAP_MERGE_EXISTING_USERS :
  250. REM # example : LDAP_MERGE_EXISTING_USERS=true
  251. REM SET LDAP_MERGE_EXISTING_USERS=false
  252. REM # LDAP_EMAIL_MATCH_ENABLE : allow existing account matching by e-mail address when username does not match
  253. REM # example: LDAP_EMAIL_MATCH_ENABLE=true
  254. REM SET LDAP_EMAIL_MATCH_ENABLE=false
  255. REM # LDAP_EMAIL_MATCH_REQUIRE : require existing account matching by e-mail address when username does match
  256. REM # example: LDAP_EMAIL_MATCH_REQUIRE=true
  257. REM SET LDAP_EMAIL_MATCH_REQUIRE=false
  258. REM # LDAP_EMAIL_MATCH_VERIFIED : require existing account email address to be verified for matching
  259. REM # example: LDAP_EMAIL_MATCH_VERIFIED=true
  260. REM SET LDAP_EMAIL_MATCH_VERIFIED=false
  261. REM # LDAP_EMAIL_FIELD : which field contains the LDAP e-mail address
  262. REM # example: LDAP_EMAIL_FIELD=mail
  263. REM SET LDAP_EMAIL_FIELD=
  264. REM # LDAP_SYNC_USER_DATA :
  265. REM # example : LDAP_SYNC_USER_DATA=true
  266. REM SET LDAP_SYNC_USER_DATA=false
  267. REM # LDAP_SYNC_USER_DATA_FIELDMAP :
  268. REM # example : LDAP_SYNC_USER_DATA_FIELDMAP={"cn":"name", "mail":"email"}
  269. REM SET LDAP_SYNC_USER_DATA_FIELDMAP=
  270. REM # LDAP_SYNC_GROUP_ROLES :
  271. REM # example :
  272. REM # SET LDAP_SYNC_GROUP_ROLES=
  273. REM # 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
  274. REM # example :
  275. REM SET LDAP_DEFAULT_DOMAIN=
  276. REM # Enable/Disable syncing of admin status based on ldap groups:
  277. REM SET LDAP_SYNC_ADMIN_STATUS=true
  278. REM # Comma separated list of admin group names to sync.
  279. REM SET LDAP_SYNC_ADMIN_GROUPS=group1,group2
  280. REM ------------------------------------------------
  281. REM # Enable/Disable password login form.
  282. REM SET PASSWORD_LOGIN_ENABLED=true
  283. REM ------------------------------------------------
  284. REM # Login to LDAP automatically with HTTP header.
  285. REM # In below example for siteminder, at right side of = is header name.
  286. REM SET HEADER_LOGIN_ID=HEADERUID
  287. REM SET HEADER_LOGIN_FIRSTNAME=HEADERFIRSTNAME
  288. REM SET HEADER_LOGIN_LASTNAME=HEADERLASTNAME
  289. REM SET HEADER_LOGIN_EMAIL=HEADEREMAILADDRESS
  290. REM ------------------------------------------------
  291. REM # LOGOUT_WITH_TIMER : Enables or not the option logout with timer
  292. REM # example : LOGOUT_WITH_TIMER=true
  293. REM SET LOGOUT_WITH_TIMER=
  294. REM # LOGOUT_IN : The number of days
  295. REM # example : LOGOUT_IN=1
  296. REM SET LOGOUT_IN=
  297. REM # LOGOUT_ON_HOURS : The number of hours
  298. REM # example : LOGOUT_ON_HOURS=9
  299. REM SET LOGOUT_ON_HOURS=
  300. REM # LOGOUT_ON_MINUTES : The number of minutes
  301. REM # example : LOGOUT_ON_MINUTES=55
  302. REM SET LOGOUT_ON_MINUTES=
  303. REM SET CAS_ENABLED=true
  304. REM SET CAS_BASE_URL=https://cas.example.com/cas
  305. REM SET CAS_LOGIN_URL=https://cas.example.com/login
  306. REM SET CAS_VALIDATE_URL=https://cas.example.com/cas/p3/serviceValidate
  307. REM SET SAML_ENABLED=true
  308. REM SET SAML_PROVIDER=
  309. REM SET SAML_ENTRYPOINT=
  310. REM SET SAML_ISSUER=
  311. REM SET SAML_CERT=
  312. REM SET SAML_IDPSLO_REDIRECTURL=
  313. REM SET SAML_PRIVATE_KEYFILE=
  314. REM SET SAML_PUBLIC_CERTFILE=
  315. REM SET SAML_IDENTIFIER_FORMAT=
  316. REM SET SAML_LOCAL_PROFILE_MATCH_ATTRIBUTE=
  317. REM SET SAML_ATTRIBUTES=
  318. REM # Wait spinner to use
  319. REM SET WAIT_SPINNER=Bounce
  320. node main.js