start-wekan.bat 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. @ECHO OFF
  2. REM # ------------------- HOWTO ---------------------
  3. REM # https://github.com/wekan/wekan/wiki/Offline
  4. REM #-------------------- REQUIRED SETTINGS START --------------------
  5. REM # Writable path required to exist and be writable for attachments to migrate and work correctly
  6. SET WRITABLE_PATH=..
  7. REM # MongoDB database URL required
  8. SET MONGO_URL=mongodb://127.0.0.1:27017/wekan
  9. REM # MONGO_PASSWORD_FILE : MongoDB password file (Docker secrets)
  10. REM # example : SET MONGO_PASSWORD_FILE=/run/secrets/mongo_password
  11. REM SET MONGO_PASSWORD_FILE=
  12. REM # If port is 80, must change ROOT_URL to: http://YOUR-WEKAN-SERVER-IPv4-ADDRESS , like http://192.168.0.100
  13. REM # If port is not 80, must change ROOT_URL to: http://YOUR-WEKAN-SERVER-IPv4-ADDRESS:YOUR-PORT-NUMBER , like http://192.168.0.100:2000
  14. REM # If ROOT_URL is not correct, these do not work: translations, uploading attachments.
  15. SET ROOT_URL=http://localhost
  16. REM # Must change to YOUR-PORT-NUMBER:
  17. SET PORT=80
  18. REM #------------------- REQUIRED SETTINGS END ----------------------
  19. REM #-------------------- OPTIONAL SETTINGS START -------------------
  20. REM # If at public Internet, required different settings:
  21. REM # - For ROOT_URL: https://github.com/wekan/wekan/wiki/Settings
  22. REM # - For SSL/TLS, also at above wiki right menu: config for Caddy/Nginx/Apache
  23. REM ------------------------------------------------------------
  24. REM # Debug OIDC OAuth2 etc.
  25. REM SET DEBUG=true
  26. REM ------------------------------------------------------------
  27. REM # ==== AWS S3 FOR FILES ====
  28. REM # Any region. For example:
  29. REM # us-standard,us-west-1,us-west-2,
  30. REM # eu-west-1,eu-central-1,
  31. REM # ap-southeast-1,ap-northeast-1,sa-east-1
  32. REM #
  33. REM SET S3='{"s3":{"key": "xxx", "secret": "xxx", "bucket": "xxx", "region": "eu-west-1"}}'
  34. REM # S3_SECRET_FILE : S3 secret file (Docker secrets)
  35. REM # example : SET S3_SECRET_FILE=/run/secrets/s3_secret
  36. REM SET S3_SECRET_FILE=
  37. REM # https://github.com/wekan/wekan/wiki/Troubleshooting-Mail
  38. REM SET MAIL_URL=smtps://username:password@email-smtp.eu-west-1.amazonaws.com:587/
  39. REM SET MAIL_FROM="Wekan Boards <info@example.com>"
  40. REM # Currently MAIL_SERVICE is not in use.
  41. REM SET MAIL_SERVICE=Outlook365
  42. REM SET MAIL_SERVICE_USER=firstname.lastname@hotmail.com
  43. REM SET MAIL_SERVICE_PASSWORD=SecretPassword
  44. REM # MAIL_SERVICE_PASSWORD_FILE : Password file for mail service (Docker secrets)
  45. REM # example : SET MAIL_SERVICE_PASSWORD_FILE=/run/secrets/mail_service_password
  46. REM SET MAIL_SERVICE_PASSWORD_FILE=
  47. REM # ==== NUMBER OF SEARCH RESULTS PER PAGE BY DEFAULT ====
  48. REM SET RESULTS_PER_PAGE=20
  49. REM # If you disable Wekan API with false, Export Board does not work.
  50. SET WITH_API=true
  51. REM # ==== AFTER OIDC LOGIN, ADD USERS AUTOMATICALLY TO THIS BOARD ID ====
  52. REM # https://github.com/wekan/wekan/pull/5098
  53. REM SET DEFAULT_BOARD_ID=abcd1234
  54. REM # ==== RICH TEXT EDITOR IN CARD COMMENTS ====
  55. REM # https://github.com/wekan/wekan/pull/2560
  56. SET RICHER_CARD_COMMENT_EDITOR=false
  57. REM # ==== CARD OPENED, SEND WEBHOOK MESSAGE ====
  58. SET CARD_OPENED_WEBHOOK_ENABLED=false
  59. REM # ==== Allow to shrink attached/pasted image ====
  60. REM # https://github.com/wekan/wekan/pull/2544
  61. REM SET MAX_IMAGE_PIXEL=1024
  62. REM SET IMAGE_COMPRESS_RATIO=80
  63. REM # ==== PASSWORD BRUTE FORCE PROTECTION ====
  64. REM #https://atmospherejs.com/lucasantoniassi/accounts-lockout
  65. REM #Defaults below. Uncomment to change. wekan/server/accounts-lockout.js
  66. REM SET ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE=3
  67. REM SET ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD=60
  68. REM SET ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW=15
  69. REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE=3
  70. REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
  71. REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
  72. REM # ==== ACCOUNT OPTIONS ====
  73. REM SET ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS=90
  74. REM # ==== Allow configuration to validate uploaded attachments ====
  75. REM SET ATTACHMENTS_UPLOAD_EXTERNAL_PROGRAM="avscan {file}"
  76. REM SET ATTACHMENTS_UPLOAD_MIME_TYPES="image/*,text/*"
  77. REM SET ATTACHMENTS_UPLOAD_MAX_SIZE=5000000
  78. REM # ==== Allow configuration to validate uploaded avatars ====
  79. REM SET AVATARS_UPLOAD_EXTERNAL_PROGRAM="avscan {file}"
  80. REM SET AVATARS_UPLOAD_MIME_TYPES="image/*"
  81. REM SET AVATARS_UPLOAD_MAX_SIZE=500000
  82. REM # ==== NOTIFICATION TRAY AFTER READ DAYS BEFORE REMOVE =====
  83. REM # Number of days after a notification is read before we remove it.
  84. REM # Default: 2
  85. REM SET NOTIFICATION_TRAY_AFTER_READ_DAYS_BEFORE_REMOVE=2
  86. REM # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
  87. REM # https://github.com/wekan/wekan/pull/2541
  88. REM # Introduced a system env var BIGEVENTS_PATTERN default as "NONE",
  89. REM # so any activityType matches the pattern, system will send out
  90. REM # notifications to all board members no matter they are watching
  91. REM # or tracking the board or not. Owner of the wekan server can
  92. REM # disable the feature by setting this variable to "NONE" or
  93. REM # change the pattern to any valid regex. i.e. '|' delimited
  94. REM # activityType names.
  95. REM # a) Example
  96. REM SET BIGEVENTS_PATTERN=due
  97. REM # b) All
  98. REM SET BIGEVENTS_PATTERN=received|start|due|end
  99. REM # c) Disabled
  100. SET BIGEVENTS_PATTERN=NONE
  101. REM # ==== EMAIL DUE DATE NOTIFICATION =====
  102. REM # https://github.com/wekan/wekan/pull/2536
  103. REM # System timelines will be showing any user modification for
  104. REM # dueat startat endat receivedat, also notification to
  105. REM # the watchers and if any card is due, about due or past due.
  106. REM # Notify due days, default is None.
  107. REM # SET NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=2,0
  108. REM # Notify due at hour of day. Default every morning at 8am. Can be 0-23.
  109. REM # If env variable has parsing error, use default. Notification sent to watchers.
  110. REM SET NOTIFY_DUE_AT_HOUR_OF_DAY=8
  111. REM # ==== EMAIL NOTIFICATION TIMEOUT, ms =====
  112. REM # Defaut: 30000 ms = 30s
  113. REM SET EMAIL_NOTIFICATION_TIMEOUT=30000
  114. REM # CORS: Set Access-Control-Allow-Origin header. Example: *
  115. REM SET CORS=*
  116. REM # To enable the Set Access-Control-Allow-Headers header. "Authorization,Content-Type" is required for cross-origin use of the API.
  117. REM SET CORS_ALLOW_HEADERS=Authorization,Content-Type
  118. REM # To enable the Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations. Example: *
  119. REM SET CORS_EXPOSE_HEADERS=*
  120. REM # Optional: Integration with Matomo https://matomo.org that is installed to your server
  121. REM # The address of the server where Matomo is hosted.
  122. REM # example: - MATOMO_ADDRESS=https://example.com/matomo
  123. REM SET MATOMO_ADDRESS=
  124. REM # ==== METRICS ALLOWED IP ADDRESSES ====
  125. REM # https://github.com/wekan/wekan/wiki/Metrics
  126. REM SET METRICS_ALLOWED_IP_ADDRESSES=192.168.0.100,192.168.0.200
  127. REM # The value of the site ID given in Matomo server for Wekan
  128. REM # example: - MATOMO_SITE_ID=12345
  129. REM SET MATOMO_SITE_ID=
  130. REM # The option do not track which enables users to not be tracked by matomo
  131. REM # example: - MATOMO_DO_NOT_TRACK=false
  132. REM SET MATOMO_DO_NOT_TRACK=
  133. REM # The option that allows matomo to retrieve the username:
  134. REM # example: MATOMO_WITH_USERNAME=true
  135. REM SET MATOMO_WITH_USERNAME=false
  136. REM # Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside.
  137. REM # Setting this to false is not recommended, it also disables all other browser policy protections
  138. REM # and allows all iframing etc. See wekan/server/policy.js
  139. SET BROWSER_POLICY_ENABLED=true
  140. REM # When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside.
  141. REM SET TRUSTED_URL=
  142. 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 .
  143. REM # example: WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
  144. REM SET WEBHOOKS_ATTRIBUTES=
  145. REM ------------------------------------------------------------
  146. REM ## ==== AUTOLOGIN WITH OIDC/OAUTH2 ====
  147. REM ## https://github.com/wekan/wekan/wiki/autologin
  148. REM # SET OIDC_REDIRECTION_ENABLED=true
  149. REM ------------------------------------------------------------
  150. REM # OAUTH2 ORACLE on premise identity manager OIM
  151. REM SET ORACLE_OIM_ENABLED=true
  152. REM ------------------------------------------------------------
  153. REM ## ==== OAUTH2 AZURE ====
  154. REM ## https://github.com/wekan/wekan/wiki/Azure
  155. REM ## 1) Register the application with Azure. Make sure you capture
  156. REM ## the application ID as well as generate a secret key.
  157. REM ## 2) Configure the environment variables. This differs slightly
  158. REM ## by installation type, but make sure you have the following:
  159. REM SET OAUTH2_ENABLED=true
  160. REM ## Optional OAuth2 CA Cert, see https://github.com/wekan/wekan/issues/3299
  161. REM # SET OAUTH2_CA_CERT=ABCD1234
  162. REM ## Use OAuth2 ADFS additional changes. Also needs OAUTH2_ENABLED=true setting.
  163. REM # SET OAUTH2_ADFS_ENABLED=false
  164. REM ## Azure AD B2C. https://github.com/wekan/wekan/issues/5242
  165. REM # SET OAUTH2_B2C_ENABLED=false
  166. REM ## OAuth2 login style: popup or redirect.
  167. REM SET OAUTH2_LOGIN_STYLE=popup
  168. REM ## Application GUID captured during app registration:
  169. REM SET OAUTH2_CLIENT_ID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
  170. REM ## Secret key generated during app registration:
  171. REM SET OAUTH2_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  172. REM # OAUTH2_SECRET_FILE : Secret key file for OAuth2 (Docker secrets)
  173. REM # example : SET OAUTH2_SECRET_FILE=/run/secrets/oauth2_secret
  174. REM SET OAUTH2_SECRET_FILE=
  175. REM SET OAUTH2_SERVER_URL=https://login.microsoftonline.com/
  176. REM SET OAUTH2_AUTH_ENDPOINT=/oauth2/v2.0/authorize
  177. REM SET OAUTH2_USERINFO_ENDPOINT=https://graph.microsoft.com/oidc/userinfo
  178. REM SET OAUTH2_TOKEN_ENDPOINT=/oauth2/v2.0/token
  179. REM ## The claim name you want to map to the unique ID field:
  180. REM SET OAUTH2_ID_MAP=email
  181. REM ## The claim name you want to map to the username field:
  182. REM SET OAUTH2_USERNAME_MAP=email
  183. REM ## The claim name you want to map to the full name field:
  184. REM SET OAUTH2_FULLNAME_MAP=name
  185. REM ## The claim name you want to map to the email field:
  186. REM SET OAUTH2_EMAIL_MAP=email
  187. REM ------------------------------------------------------------
  188. REM ## ==== OAUTH2 Nextcloud ====
  189. REM ## 1) Register the application with Nextcloud: https://your.nextcloud/index.php/settings/admin/security
  190. REM ## Make sure you capture the application ID as well as generate a secret key.
  191. REM ## Use https://your.wekan/_oauth/oidc for the redirect URI.
  192. REM ## 2) Configure the environment variables. This differs slightly
  193. REM ## by installation type, but make sure you have the following:
  194. REM SET OAUTH2_ENABLED=true
  195. REM ## OAuth2 login style: popup or redirect.
  196. REM SET OAUTH2_LOGIN_STYLE=popup
  197. REM ## Application GUID captured during app registration:
  198. REM SET OAUTH2_CLIENT_ID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
  199. REM ## Secret key generated during app registration:
  200. REM SET OAUTH2_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  201. REM SET OAUTH2_SERVER_URL=https://your-nextcloud.tld
  202. REM SET OAUTH2_AUTH_ENDPOINT=/index.php/apps/oauth2/authorize
  203. REM SET OAUTH2_USERINFO_ENDPOINT=/ocs/v2.php/cloud/user?format=json
  204. REM SET OAUTH2_TOKEN_ENDPOINT=/index.php/apps/oauth2/api/v1/token
  205. REM ## The claim name you want to map to the unique ID field:
  206. REM SET OAUTH2_ID_MAP=id
  207. REM ## The claim name you want to map to the username field:
  208. REM SET OAUTH2_USERNAME_MAP=id
  209. REM ## The claim name you want to map to the full name field:
  210. REM SET OAUTH2_FULLNAME_MAP=display-name
  211. REM ## The claim name you want to map to the email field:
  212. REM SET OAUTH2_EMAIL_MAP=email
  213. REM ------------------------------------------------------------
  214. REM ## ==== OAUTH2 KEYCLOAK ====
  215. REM ## https://github.com/wekan/wekan/wiki/Keycloak <== MAPPING INFO, REQUIRED
  216. REM SET OAUTH2_ENABLED=true
  217. REM ## OAuth2 login style: popup or redirect.
  218. REM SET OAUTH2_LOGIN_STYLE=popup
  219. REM SET OAUTH2_CLIENT_ID=<Keycloak create Client ID>
  220. REM SET OAUTH2_SERVER_URL=<Keycloak server url - https://keycloak.example.com>
  221. REM SET OAUTH2_AUTH_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/auth
  222. REM SET OAUTH2_USERINFO_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/userinfo
  223. REM SET OAUTH2_TOKEN_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/token
  224. REM SET OAUTH2_SECRET=<keycloak client secret>
  225. REM SET OAUTH2_ID_MAP=sub
  226. REM SET OAUTH2_USERNAME_MAP=preferred_username
  227. REM SET OAUTH2_EMAIL_MAP=email
  228. REM SET OAUTH2_FULLNAME_MAP=name
  229. REM ------------------------------------------------------------
  230. REM ## ==== OAUTH2 DOORKEEPER ====
  231. REM ## https://github.com/wekan/wekan/issues/1874
  232. REM ## https://github.com/wekan/wekan/wiki/OAuth2
  233. REM ## Enable the OAuth2 connection
  234. REM SET OAUTH2_ENABLED=true
  235. REM ## OAuth2 docs: https://github.com/wekan/wekan/wiki/OAuth2
  236. REM ## OAuth2 login style: popup or redirect.
  237. REM SET OAUTH2_LOGIN_STYLE=popup
  238. REM ## OAuth2 Client ID.
  239. REM SET OAUTH2_CLIENT_ID=abcde12345
  240. REM ## OAuth2 Secret.
  241. REM SET OAUTH2_SECRET=54321abcde
  242. REM ## OAuth2 Server URL.
  243. REM SET OAUTH2_SERVER_URL=https://chat.example.com
  244. REM ## OAuth2 Authorization Endpoint.
  245. REM SET OAUTH2_AUTH_ENDPOINT=/oauth/authorize
  246. REM ## OAuth2 Userinfo Endpoint.
  247. REM SET OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
  248. REM ## OAuth2 Token Endpoint.
  249. REM SET OAUTH2_TOKEN_ENDPOINT=/oauth/token
  250. REM ## OAUTH2 ID Token Whitelist Fields.
  251. REM SET OAUTH2_ID_TOKEN_WHITELIST_FIELDS=""
  252. REM ## OAUTH2 Request Permissions.
  253. REM SET OAUTH2_REQUEST_PERMISSIONS=openid profile email
  254. REM ## OAuth2 ID Mapping
  255. REM # SET OAUTH2_ID_MAP=
  256. REM ## OAuth2 Username Mapping
  257. REM # SET OAUTH2_USERNAME_MAP=
  258. REM ## OAuth2 Fullname Mapping
  259. REM # SET OAUTH2_FULLNAME_MAP=
  260. REM ## OAuth2 Email Mapping
  261. REM # SET OAUTH2_EMAIL_MAP=
  262. REM ------------------------------------------------------------
  263. REM # Enable the OAuth2 connection
  264. REM # OAuth2 docs: https://github.com/wekan/wekan/wiki/OAuth2
  265. REM # example: OAUTH2_ENABLED=true
  266. REM SET OAUTH2_ENABLED=false
  267. REM # Optional OAuth2 CA Cert, see https://github.com/wekan/wekan/issues/3299
  268. REM SET OAUTH2_CA_CERT=ABCD1234
  269. REM # Use OAuth2 ADFS additional changes. Also needs OAUTH2_ENABLED=true setting.
  270. REM SET OAUTH2_ADFS_ENABLED=false
  271. REM # Use OAuth2 Azure AD B2C. Also requires OAUTH2_ENABLED=true setting . https://github.com/wekan/wekan/issues/5242
  272. REM SET DEFAULT_OAUTH2_B2C_ENABLED=false
  273. REM # OAuth2 Client ID, for example from Rocket.Chat. Example: abcde12345
  274. REM # example: OAUTH2_CLIENT_ID=abcde12345
  275. REM SET OAUTH2_CLIENT_ID=
  276. REM # OAuth2 Secret, for example from Rocket.Chat: Example: 54321abcde
  277. REM # example: OAUTH2_SECRET=54321abcde
  278. REM SET OAUTH2_SECRET=
  279. REM # OAuth2 Server URL, for example Rocket.Chat. Example: https://chat.example.com
  280. REM # example: OAUTH2_SERVER_URL=https://chat.example.com
  281. REM SET OAUTH2_SERVER_URL=
  282. REM # OAuth2 Authorization Endpoint. Example: /oauth/authorize
  283. REM # example: OAUTH2_AUTH_ENDPOINT=/oauth/authorize
  284. REM SET OAUTH2_AUTH_ENDPOINT=
  285. REM # OAuth2 Userinfo Endpoint. Example: /oauth/userinfo
  286. REM # example: OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
  287. REM SET OAUTH2_USERINFO_ENDPOINT=
  288. REM # OAuth2 Token Endpoint. Example: /oauth/token
  289. REM # example: OAUTH2_TOKEN_ENDPOINT=/oauth/token
  290. REM SET OAUTH2_TOKEN_ENDPOINT=
  291. REM # OAUTH2 ID Token Whitelist Fields.
  292. REM SET OAUTH2_ID_TOKEN_WHITELIST_FIELDS=[]
  293. REM # OAUTH2 Request Permissions.
  294. REM SET OAUTH2_REQUEST_PERMISSIONS=openid profile email
  295. REM # OAuth2 ID Mapping
  296. REM SET OAUTH2_ID_MAP=
  297. REM # OAuth2 Username Mapping
  298. REM SET OAUTH2_USERNAME_MAP=
  299. REM # OAuth2 Fullname Mapping
  300. REM SET OAUTH2_FULLNAME_MAP=
  301. REM # OAuth2 Email Mapping
  302. REM SET OAUTH2_EMAIL_MAP=
  303. REM ------------------------------------------------------------
  304. REM ## ==== LDAP: UNCOMMENT ALL TO ENABLE LDAP ====
  305. REM ## https://github.com/wekan/wekan/wiki/LDAP
  306. REM ## Note: Do not add single quotes '' to variables. Having spaces still works without quotes where required.
  307. REM # The default authentication method used if a user does not exist to create and authenticate. Can be set as ldap.
  308. REM # (this is set properly in the Admin Panel, changing this item does not remove Password login option)
  309. REM SET DEFAULT_AUTHENTICATION_METHOD=ldap
  310. REM # LDAP_ENABLE : Enable or not the connection by the LDAP
  311. REM SET LDAP_ENABLE=true
  312. REM # LDAP_PORT : The port of the LDAP server
  313. REM SET LDAP_PORT=389
  314. REM # LDAP_HOST : The host server for the LDAP server
  315. REM SET LDAP_HOST=localhost
  316. REM #-----------------------------------------------------------------
  317. REM # ==== LDAP AD Simple Auth ====
  318. REM # Set to true, if you want to connect with Active Directory by Simple Authentication.
  319. REM # When using AD Simple Auth, LDAP_BASEDN is not needed.
  320. REM SET LDAP_AD_SIMPLE_AUTH=true
  321. REM #-----------------------------------------------------------------
  322. REM # === LDAP User Authentication ===
  323. REM #
  324. REM # a) Option to login to the LDAP server with the user's own username and password, instead of
  325. REM # an administrator key. Default: false (use administrator key).
  326. REM #
  327. REM # b) When using AD Simple Auth, set to true, when login user is used for binding,
  328. REM # and LDAP_BASEDN is not needed.
  329. REM #
  330. REM # Example:
  331. REM SET LDAP_USER_AUTHENTICATION=true
  332. REM # Which field is used to find the user for the user authentication. Default: uid.
  333. REM SET LDAP_USER_AUTHENTICATION_FIELD=uid
  334. REM # === LDAP Default Domain ===
  335. REM #
  336. REM # a) In case AD SimpleAuth is configured, the default domain is appended to the given
  337. REM # loginname for creating the correct username for the bind request to AD.
  338. REM #
  339. REM # b) The default domain of the ldap it is used to create email if the field is not map
  340. REM # correctly with the LDAP_SYNC_USER_DATA_FIELDMAP
  341. REM #
  342. REM # Example :
  343. REM SET LDAP_DEFAULT_DOMAIN=mydomain.com
  344. REM #-----------------------------------------------------------------
  345. REM # ==== LDAP BASEDN Auth ====
  346. REM # LDAP_BASEDN : The base DN for the LDAP Tree
  347. REM # example : LDAP_BASEDN=ou=user,dc=example,dc=org
  348. REM SET LDAP_BASEDN=
  349. REM #-----------------------------------------------------------------
  350. REM # LDAP_LOGIN_FALLBACK : Fallback on the default authentication method
  351. REM # example : LDAP_LOGIN_FALLBACK=true
  352. REM SET LDAP_LOGIN_FALLBACK=false
  353. REM # LDAP_RECONNECT : Reconnect to the server if the connection is lost
  354. REM # example : LDAP_RECONNECT=false
  355. REM SET LDAP_RECONNECT=true
  356. REM # LDAP_TIMEOUT : Overall timeout, in milliseconds
  357. REM # example : LDAP_TIMEOUT=12345
  358. REM SET LDAP_TIMEOUT=10000
  359. REM # LDAP_IDLE_TIMEOUT : Specifies the timeout for idle LDAP connections in milliseconds
  360. REM # example : LDAP_IDLE_TIMEOUT=12345
  361. REM SET LDAP_IDLE_TIMEOUT=10000
  362. REM # LDAP_CONNECT_TIMEOUT : Connection timeout, in milliseconds
  363. REM # example : LDAP_CONNECT_TIMEOUT=12345
  364. REM SET LDAP_CONNECT_TIMEOUT=10000
  365. REM # LDAP_AUTHENTIFICATION : If the LDAP needs a user account to search
  366. REM # example : LDAP_AUTHENTIFICATION=true
  367. REM SET LDAP_AUTHENTIFICATION=false
  368. REM # LDAP_AUTHENTIFICATION_USERDN : The search user DN
  369. REM # example: LDAP_AUTHENTIFICATION_USERDN=cn=admin,dc=example,dc=org
  370. REM SET LDAP_AUTHENTIFICATION_USERDN=
  371. REM # The search user DN - You need quotes when you have spaces in parameters
  372. REM # 2 examples:
  373. REM SET LDAP_AUTHENTIFICATION_USERDN="CN=ldap admin,CN=users,DC=domainmatter,DC=lan"
  374. REM SET LDAP_AUTHENTIFICATION_USERDN="CN=wekan_adm,OU=serviceaccounts,OU=admin,OU=prod,DC=mydomain,DC=com"
  375. REM # LDAP_AUTHENTIFICATION_PASSWORD : The password for the search user
  376. REM # example : AUTHENTIFICATION_PASSWORD=admin
  377. REM SET LDAP_AUTHENTIFICATION_PASSWORD=
  378. REM # LDAP_AUTHENTIFICATION_PASSWORD_FILE : The password file for the search user (Docker secrets)
  379. REM # example : SET LDAP_AUTHENTIFICATION_PASSWORD_FILE=/run/secrets/ldap_auth_password
  380. REM SET LDAP_AUTHENTIFICATION_PASSWORD_FILE=
  381. REM # LDAP_LOG_ENABLED : Enable logs for the module
  382. REM # example : LDAP_LOG_ENABLED=true
  383. REM SET LDAP_LOG_ENABLED=false
  384. REM # LDAP_BACKGROUND_SYNC : If the sync of the users should be done in the background
  385. REM # example : LDAP_BACKGROUND_SYNC=true
  386. REM SET LDAP_BACKGROUND_SYNC=false
  387. REM # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
  388. REM # The format must be as specified in:
  389. REM # https://bunkat.github.io/later/parsers.html#text
  390. REM SET LDAP_BACKGROUND_SYNC_INTERVAL=every 1 hours
  391. REM # At which interval does the background task sync in milliseconds.
  392. REM # Leave this unset, so it uses default, and does not crash.
  393. REM # https://github.com/wekan/wekan/issues/2354#issuecomment-515305722
  394. SET LDAP_BACKGROUND_SYNC_INTERVAL=''
  395. REM # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
  396. REM # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
  397. REM SET LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
  398. REM # LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS :
  399. REM # example : LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=true
  400. REM SET LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false
  401. REM # LDAP_ENCRYPTION : If using LDAPS
  402. REM # example : LDAP_ENCRYPTION=ssl
  403. REM SET LDAP_ENCRYPTION=false
  404. REM # LDAP_CA_CERT : The certification for the LDAPS server. Certificate needs to be included in this docker-compose.yml file.
  405. REM # example : LDAP_CA_CERT=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----
  406. REM SET LDAP_CA_CERT=
  407. REM # LDAP_REJECT_UNAUTHORIZED : Reject Unauthorized Certificate
  408. REM # example : LDAP_REJECT_UNAUTHORIZED=true
  409. REM SET LDAP_REJECT_UNAUTHORIZED=false
  410. REM # LDAP_USER_SEARCH_FILTER : Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed
  411. REM # example : LDAP_USER_SEARCH_FILTER=
  412. REM SET LDAP_USER_SEARCH_FILTER=
  413. 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)
  414. REM # example : LDAP_USER_SEARCH_SCOPE=one
  415. REM SET LDAP_USER_SEARCH_SCOPE=
  416. REM # LDAP_USER_SEARCH_FIELD : Which field is used to find the user
  417. REM # example : LDAP_USER_SEARCH_FIELD=uid
  418. REM SET LDAP_USER_SEARCH_FIELD=
  419. REM # LDAP_SEARCH_PAGE_SIZE : Used for pagination (0=unlimited)
  420. REM # example : LDAP_SEARCH_PAGE_SIZE=12345
  421. REM SET LDAP_SEARCH_PAGE_SIZE=0
  422. REM # LDAP_SEARCH_SIZE_LIMIT : The limit number of entries (0=unlimited)
  423. REM #33 example : LDAP_SEARCH_SIZE_LIMIT=12345
  424. REM SET LDAP_SEARCH_SIZE_LIMIT=0
  425. REM # LDAP_GROUP_FILTER_ENABLE : Enable group filtering
  426. REM # example : LDAP_GROUP_FILTER_ENABLE=true
  427. REM SET LDAP_GROUP_FILTER_ENABLE=false
  428. REM # LDAP_GROUP_FILTER_OBJECTCLASS : The object class for filtering
  429. REM # example : LDAP_GROUP_FILTER_OBJECTCLASS=group
  430. REM SET LDAP_GROUP_FILTER_OBJECTCLASS=
  431. REM # LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE :
  432. REM # example :
  433. REM SET LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE=
  434. REM # LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE :
  435. REM # example :
  436. REM SET LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE=
  437. REM # LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT :
  438. REM # example :
  439. REM SET LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT=
  440. REM # LDAP_GROUP_FILTER_GROUP_NAME :
  441. REM # example :
  442. REM SET LDAP_GROUP_FILTER_GROUP_NAME=
  443. REM # LDAP_UNIQUE_IDENTIFIER_FIELD : This field is sometimes class GUID (Globally Unique Identifier)
  444. REM # example : LDAP_UNIQUE_IDENTIFIER_FIELD=guid
  445. REM SET LDAP_UNIQUE_IDENTIFIER_FIELD=
  446. REM # LDAP_UTF8_NAMES_SLUGIFY : Convert the username to utf8
  447. REM # example : LDAP_UTF8_NAMES_SLUGIFY=false
  448. REM SET LDAP_UTF8_NAMES_SLUGIFY=true
  449. REM # LDAP_USERNAME_FIELD : Which field contains the ldap username
  450. REM # example : LDAP_USERNAME_FIELD=username
  451. REM SET LDAP_USERNAME_FIELD=
  452. REM # LDAP_MERGE_EXISTING_USERS :
  453. REM # example : LDAP_MERGE_EXISTING_USERS=true
  454. REM SET LDAP_MERGE_EXISTING_USERS=false
  455. REM # LDAP_EMAIL_MATCH_ENABLE : allow existing account matching by e-mail address when username does not match
  456. REM # example: LDAP_EMAIL_MATCH_ENABLE=true
  457. REM SET LDAP_EMAIL_MATCH_ENABLE=false
  458. REM # LDAP_EMAIL_MATCH_REQUIRE : require existing account matching by e-mail address when username does match
  459. REM # example: LDAP_EMAIL_MATCH_REQUIRE=true
  460. REM SET LDAP_EMAIL_MATCH_REQUIRE=false
  461. REM # LDAP_EMAIL_MATCH_VERIFIED : require existing account email address to be verified for matching
  462. REM # example: LDAP_EMAIL_MATCH_VERIFIED=true
  463. REM SET LDAP_EMAIL_MATCH_VERIFIED=false
  464. REM # LDAP_EMAIL_FIELD : which field contains the LDAP e-mail address
  465. REM # example: LDAP_EMAIL_FIELD=mail
  466. REM SET LDAP_EMAIL_FIELD=
  467. REM # LDAP_SYNC_USER_DATA :
  468. REM # example : LDAP_SYNC_USER_DATA=true
  469. REM SET LDAP_SYNC_USER_DATA=false
  470. REM # LDAP_SYNC_USER_DATA_FIELDMAP :
  471. REM # example : LDAP_SYNC_USER_DATA_FIELDMAP={"cn":"name", "mail":"email"}
  472. REM SET LDAP_SYNC_USER_DATA_FIELDMAP=
  473. REM # The default domain of the ldap it is used to create email if the field is not map correctly
  474. REM # with the LDAP_SYNC_USER_DATA_FIELDMAP is defined in setting LDAP_DEFAULT_DOMAIN above.
  475. REM # LDAP_SYNC_GROUP_ROLES :
  476. REM # example :
  477. REM # SET LDAP_SYNC_GROUP_ROLES=
  478. REM # Enable/Disable syncing of admin status based on ldap groups:
  479. REM SET LDAP_SYNC_ADMIN_STATUS=true
  480. REM # Comma separated list of admin group names to sync.
  481. REM SET LDAP_SYNC_ADMIN_GROUPS=group1,group2
  482. REM ------------------------------------------------
  483. REM # Enable/Disable password login form.
  484. REM SET PASSWORD_LOGIN_ENABLED=true
  485. REM ------------------------------------------------
  486. REM # Login to LDAP automatically with HTTP header.
  487. REM # In below example for siteminder, at right side of = is header name.
  488. REM SET HEADER_LOGIN_ID=HEADERUID
  489. REM SET HEADER_LOGIN_FIRSTNAME=HEADERFIRSTNAME
  490. REM SET HEADER_LOGIN_LASTNAME=HEADERLASTNAME
  491. REM SET HEADER_LOGIN_EMAIL=HEADEREMAILADDRESS
  492. REM ------------------------------------------------
  493. REM # LOGOUT_WITH_TIMER : Enables or not the option logout with timer
  494. REM # example : LOGOUT_WITH_TIMER=true
  495. REM SET LOGOUT_WITH_TIMER=
  496. REM # LOGOUT_IN : The number of days
  497. REM # example : LOGOUT_IN=1
  498. REM SET LOGOUT_IN=
  499. REM # LOGOUT_ON_HOURS : The number of hours
  500. REM # example : LOGOUT_ON_HOURS=9
  501. REM SET LOGOUT_ON_HOURS=
  502. REM # LOGOUT_ON_MINUTES : The number of minutes
  503. REM # example : LOGOUT_ON_MINUTES=55
  504. REM SET LOGOUT_ON_MINUTES=
  505. REM ## https://github.com/wekan/wekan/wiki/CAS
  506. REM SET CAS_ENABLED=true
  507. REM SET CAS_BASE_URL=https://cas.example.com/cas
  508. REM SET CAS_LOGIN_URL=https://cas.example.com/login
  509. REM SET CAS_VALIDATE_URL=https://cas.example.com/cas/p3/serviceValidate
  510. REM ## https://github.com/wekan/wekan/wiki/SAML
  511. REM SET SAML_ENABLED=true
  512. REM SET SAML_PROVIDER=
  513. REM SET SAML_ENTRYPOINT=
  514. REM SET SAML_ISSUER=
  515. REM SET SAML_CERT=
  516. REM SET SAML_IDPSLO_REDIRECTURL=
  517. REM SET SAML_PRIVATE_KEYFILE=
  518. REM SET SAML_PUBLIC_CERTFILE=
  519. REM SET SAML_IDENTIFIER_FORMAT=
  520. REM SET SAML_LOCAL_PROFILE_MATCH_ATTRIBUTE=
  521. REM SET SAML_ATTRIBUTES=
  522. REM # Wait spinner to use https://github.com/wekan/wekan/wiki/Wait-Spinners
  523. REM SET WAIT_SPINNER=Bounce
  524. REM # https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
  525. REM # Add more Node heap:
  526. REM # SET NODE_OPTIONS="--max_old_space_size=4096"
  527. REM # Add more stack. ulimit is not at Windows, stack-size is at Windows:
  528. REM # bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
  529. REM #node --stack-size=65500 main.js
  530. REM #-------------------- OPTIONAL SETTINGS END --------------------
  531. node main.js