Guest User

Untitled

a guest
May 30th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. let
  2. unit' = pkgs.unit.override { php74 = pkgs.php74.withExtensions({ enabled, all }: enabled ++ [ all.memcached ]); };
  3. in services.unit = {
  4. enable = true;
  5. package = unit';
  6. config = ''
  7. {
  8. "listeners": {
  9. "*:8374": {
  10. "application": "php_74"
  11. }
  12. },
  13. "applications": {
  14. "php_74": {
  15. "type": "php 7.4",
  16. "processes": 1,
  17. "user": "nginx",
  18. "group": "nginx",
  19. "root": "/var/www",
  20. "index": "index.php",
  21. "options": {
  22. "file": "${unit'.usedPhp74}/lib/php.ini",
  23. "admin": {
  24. "max_execution_time": "30",
  25. "max_input_time": "30",
  26. "display_errors": "on",
  27. "display_startup_errors": "on",
  28. }
  29. }
  30. }
  31. }
  32. }
  33. '';
  34. };
Advertisement
Add Comment
Please, Sign In to add comment