start-wekan.sh 27 KB

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