Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let
- unit' = pkgs.unit.override { php74 = pkgs.php74.withExtensions({ enabled, all }: enabled ++ [ all.memcached ]); };
- in services.unit = {
- enable = true;
- package = unit';
- config = ''
- {
- "listeners": {
- "*:8374": {
- "application": "php_74"
- }
- },
- "applications": {
- "php_74": {
- "type": "php 7.4",
- "processes": 1,
- "user": "nginx",
- "group": "nginx",
- "root": "/var/www",
- "index": "index.php",
- "options": {
- "file": "${unit'.usedPhp74}/lib/php.ini",
- "admin": {
- "max_execution_time": "30",
- "max_input_time": "30",
- "display_errors": "on",
- "display_startup_errors": "on",
- }
- }
- }
- }
- }
- '';
- };
Advertisement
Add Comment
Please, Sign In to add comment