Commit Graph

81 Commits

Author SHA1 Message Date
Kévin Dunglas e7e0dbfa3d chore: prepare release 1.1.2 2024-03-24 20:35:19 +01:00
Kévin Dunglas eed3a019a6 chore: prepare release 1.1.1 2024-03-18 19:39:51 +01:00
Kévin Dunglas 40924d2996 chore: bump deps 2024-03-18 19:39:14 +01:00
Kévin Dunglas 822f80829e chore: bump deps 2024-03-12 22:20:16 +01:00
Kévin Dunglas 07a74e5c5a perf: reduce allocs when creating $_SERVER (#540)
* perf: reduce allocs when creating $_SERVER

* improve

* refactor: prevent C allocs when populating $_SERVER

* cs

* remove append()

* simplify

* wip

* cleanup

* add cache

* cleanup otter init

* some fixes

* cleanup

* test with a leak

* remove const?

* add const

* wip

* wip

* allocate dynamic variables in Go memory

* cleanup

* typo

* bump otter

* chore: bump deps
2024-03-12 18:31:30 +01:00
Kévin Dunglas 2d87fdaf0d more deps 2024-03-04 18:40:42 +01:00
Kévin Dunglas 1768f8b073 chore: bump deps 2024-03-04 18:40:42 +01:00
Kévin Dunglas feaa950d89 feat: compile with Go 1.22 (#568) 2024-02-12 10:00:46 +01:00
Kévin Dunglas a996c2ee28 chore: prepare release 1.1.0 2024-02-03 12:32:48 +01:00
Kévin Dunglas ae958516ea feat: enable resolve_root_symlink by default (#546)
* feat: enable resolve_root_symlink by default

* Update docs/config.md

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

* fix init

---------

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2024-02-02 15:58:33 +01:00
Kévin Dunglas 175b9a0296 feat: add Brotli compression support (#524) 2024-01-30 18:33:59 +01:00
Kévin Dunglas 85b36acce1 chore: comment logs directive 2024-01-29 17:17:12 +01:00
Kévin Dunglas d9618ac917 chore: bump deps 2024-01-29 17:17:12 +01:00
Pierre du Plessis a92d774742 fix: check for custom php.ini before checking for the Caddyfile (#498) 2024-01-22 22:26:20 +01:00
Pierre du Plessis effb5805f1 feat: allow custom php.ini file in embedded apps (#497) 2024-01-22 14:01:27 +01:00
Pierre du Plessis 5d32f32639 feat: option to start a Mercure.rocks hub when running php-server (#489)
---------

Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
2024-01-22 13:35:19 +01:00
Pierre du Plessis bccbaafc84 feat: load custom Caddyfile from embedded app if it exists (#494)
---------

Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
2024-01-22 13:31:12 +01:00
Kévin Dunglas 9b9957f5cf chore: prepare release 1.0.3 2023-12-29 22:50:56 +01:00
Kévin Dunglas 11711bb6da chore: prepare release 1.0.2 2023-12-25 17:12:41 +01:00
Kévin Dunglas 64672a267a chore: bump deps (#429) 2023-12-22 16:54:05 +01:00
Kévin Dunglas 0015493543 chore: prepare release 1.0.1 2023-12-18 19:39:47 +01:00
Kévin Dunglas efa8b243c9 chore: improve automaxprocs logs 2023-12-14 21:49:11 +01:00
dependabot[bot] 1564c762ee chore(caddy): bump github.com/dunglas/mercure/caddy in /caddy
Bumps [github.com/dunglas/mercure/caddy](https://github.com/dunglas/mercure) from 0.15.5 to 0.15.6.
- [Release notes](https://github.com/dunglas/mercure/releases)
- [Changelog](https://github.com/dunglas/mercure/blob/main/.goreleaser.yml)
- [Commits](https://github.com/dunglas/mercure/compare/v0.15.5...v0.15.6)

---
updated-dependencies:
- dependency-name: github.com/dunglas/mercure/caddy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 00:44:52 +01:00
Kévin Dunglas d7e40985d2 chore: upgrade to Caddy 2.7.6 2023-12-11 16:15:16 +01:00
Kévin Dunglas 5e946fc02a chore: prepare release 1.0.0 2023-12-07 16:25:12 +01:00
Kévin Dunglas e3361c2b3f feat(caddy): allow to start workers using the php-server built-in command (#339) 2023-12-06 18:18:16 +01:00
Kévin Dunglas 7536b89815 feat: allow running embedded CLI scripts 2023-12-03 19:17:17 +01:00
Kévin Dunglas 6509cddd2a feat: embed PHP apps into the FrankenPHP binary 2023-12-02 15:40:51 +01:00
Kévin Dunglas 5a85a11c60 chore: prepare release 1.0.0-rc.4 2023-11-30 08:46:08 +01:00
Kévin Dunglas d80cc88ae1 chore: prepare release 1.0.0-rc.3 2023-11-16 16:08:03 +01:00
Kévin Dunglas aa1d968dcf refactor: faster $_SERVER variables creation 2023-11-16 14:40:52 +01:00
Kévin Dunglas 4c70ae285a chore: bump deps 2023-11-10 19:44:59 +01:00
Kévin Dunglas 255dd4b6d6 chore: prepare release 1.0.0-rc.2 2023-10-30 23:04:59 +01:00
Kévin Dunglas ce1b02b1bd fix: retract RC1 of the Caddy module 2023-10-30 22:17:01 +01:00
Kévin Dunglas c1b8c5df5f docs: improve workers docs (#281)
* docs: improve workers docs

* improvements
2023-10-30 22:16:09 +01:00
Kévin Dunglas 385b47ee3b chore: bump deps 2023-10-27 07:29:06 +02:00
Kévin Dunglas e13e394700 feat: minor improvements to the default Caddyfile 2023-10-26 08:45:52 +02:00
Kévin Dunglas dfa19978f8 chore: bump OpenTelemetry-Go 2023-10-16 21:53:18 +02:00
Kévin Dunglas 120006a297 chore: bump deps 2023-10-16 21:53:18 +02:00
Kévin Dunglas 7f9c50e6f5 chore: prepare release 1.0.0-beta.2 2023-10-10 16:33:05 +02:00
Kévin Dunglas 51038bbdf5 chore: log maxprocs (#257)
* chore: log maxprocs

* Update caddy/frankenphp/main.go

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>

---------

Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2023-10-09 15:16:22 +02:00
Kévin Dunglas c615fe0087 feat: add experimental CLI support (#239)
* feat: add CLI support

* updated

* debug

* fix tests

* Caddy php-cli command

* use thread

* $_SERVER and input streams support

* Update frankenphp.c

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

---------

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-10-09 14:38:15 +02:00
Ruud Kamphuis af3ed6e26d fix: disable automaxprocs logging
See https://github.com/uber-go/automaxprocs/issues/18

Fixes #251
2023-10-09 12:03:58 +02:00
Kévin Dunglas c624971fa7 feat(caddy): add command to start a PHP server (#238)
* feat(caddy): a command to start a PHP server

* docs and l shortcut

* fix some bugs and support for compression

* cleanup

* enable compression by default

* add -a shortcut

* refactor

* const

* docs
2023-10-05 14:56:04 +02:00
Kévin Dunglas b04326ee83 chore: better env vars in default Caddyfile (#237) 2023-10-03 18:02:03 +02:00
Kévin Dunglas 2d91a606fd feat(caddy): php_server simplified directive (#235)
* feat(caddy): php_server simplified directive

* fix typo

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>

* fix

* cleanup

* Update config.md

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

* feat: automatically serve static files

* file_server off

* fix tests

* fix config

* fix tests in Docker

* debug

* fix

---------

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2023-10-03 15:44:55 +02:00
Kévin Dunglas eca8cc7350 fix(caddy): ModuleInfo.New() warning 2023-09-27 19:40:48 +02:00
Kévin Dunglas 618ac0850e chore: prepare release 1.0.0-beta.1 2023-09-20 15:12:07 +02:00
Kévin Dunglas a1bc1d837f chore: prepare release 1.0.0-rc.1 2023-09-20 14:20:01 +02:00
Kévin Dunglas 123d167729 ci: release infrastructure (#213)
* ci: release infrastructure

* ci: release CircleCI binary

* fix circle

* fix Circle pipeline

* improve tags and docs

* improvements
2023-09-20 14:15:41 +02:00