IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536
  1. base: freebsd-latest
  2. steps:
  3. - run:
  4. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg install prosody nginx gettext
  5. - run:
  6. - sysrc sshd_enable=NO
  7. - sysrc sendmail_enable=NONE
  8. - sysrc syslogd_flags="-ss"
  9. - sysrc clear_tmp_enable=YES
  10. - sysrc prosody_enable=YES
  11. - sysrc nginx_enable=YES
  12. - run:
  13. - fetch https://github.com/jsxc/jsxc/releases/download/v4.1.0/jsxc-4.1.0.tar.gz
  14. - tar -zvxf jsxc-4.1.0.tar.gz
  15. - copy:
  16. - [ files/config.sh,
  17. /root/config.sh ]
  18. - [ files/nginx.conf,
  19. /root/nginx.conf ]
  20. - [ files/prosody.cfg.lua,
  21. /root/prosody.cfg.lua ]
  22. - [ files/index.html,
  23. /root/index.html ]
  24. - run:
  25. - source /root/config.sh
  26. - if [ "x${PROSODY_DOMAIN}" == "x" ]; then echo PROSODY_DOMAIN must be set; exit 1; fi
  27. - if [ "x${PROSODY_JAIL_IP}" == "x" ]; then echo PROSODY_JAIL_IP must be set; exit 1; fi
  28. - if [ "x${PROSODY_WEBAPP_VHOST}" == "x" ]; then echo PROSODY_WEBAPP_VHOST must be set; exit 1; fi
  29. - cat /root/nginx.conf | envsubst >/usr/local/etc/nginx/nginx.conf
  30. - cat /root/prosody.cfg.lua | envsubst >/usr/local/etc/prosody/prosody.cfg.lua
  31. - cat /root/index.html | envsubst >/jsxc/index.html
  32. - rm -v /root/nginx.conf /root/prosody.cfg.lua /root/index.html
  33. - run:
  34. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg remove gettext
  35. - ASSUME_ALWAYS_YES=yes IGNORE_OSVERSION=yes pkg autoremove