start-wekan.bat 14 KB

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