Caddyfile 489 B

123456789101112131415161718192021222324
  1. {
  2. {$CADDY_GLOBAL_OPTIONS}
  3. admin {$CADDY_SERVER_ADMIN_HOST}:{$CADDY_SERVER_ADMIN_PORT}
  4. frankenphp {
  5. worker "{$APP_PUBLIC_PATH}/frankenphp-worker.php" {$CADDY_SERVER_WORKER_COUNT}
  6. }
  7. }
  8. {$CADDY_SERVER_SERVER_NAME} {
  9. route {
  10. # Mercure configuration is injected here...
  11. {$CADDY_SERVER_EXTRA_DIRECTIVES}
  12. # FrankenPHP!
  13. # disable static files for this benchmark
  14. # by using php instead of php_server
  15. rewrite frankenphp-worker.php
  16. php {
  17. root "{$APP_PUBLIC_PATH}"
  18. }
  19. }
  20. }