Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

45 righe
1.1 KiB

  1. #!/bin/bash
  2. #
  3. # Default ENTRYPOINT for the docker image used for testing synapse with workers under complement
  4. set -e
  5. function log {
  6. d=$(date +"%Y-%m-%d %H:%M:%S,%3N")
  7. echo "$d $@"
  8. }
  9. # Replace the server name in the caddy config
  10. sed -i "s/{{ server_name }}/${SERVER_NAME}/g" /root/caddy.json
  11. # Set the server name of the homeserver
  12. export SYNAPSE_SERVER_NAME=${SERVER_NAME}
  13. # No need to report stats here
  14. export SYNAPSE_REPORT_STATS=no
  15. # Set postgres authentication details which will be placed in the homeserver config file
  16. export POSTGRES_PASSWORD=somesecret
  17. export POSTGRES_USER=postgres
  18. export POSTGRES_HOST=localhost
  19. # Specify the workers to test with
  20. export SYNAPSE_WORKER_TYPES="\
  21. event_persister, \
  22. event_persister, \
  23. background_worker, \
  24. frontend_proxy, \
  25. event_creator, \
  26. user_dir, \
  27. media_repository, \
  28. federation_inbound, \
  29. federation_reader, \
  30. federation_sender, \
  31. synchrotron, \
  32. appservice, \
  33. pusher"
  34. # Run the script that writes the necessary config files and starts supervisord, which in turn
  35. # starts everything else
  36. exec /configure_workers_and_start.py