start-wekan.sh 26 KB

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