You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: caddy/module.go
+4-55Lines changed: 4 additions & 55 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,9 @@
1
1
package caddy
2
2
3
3
import (
4
-
"bytes"
5
-
"encoding/gob"
6
4
"encoding/json"
7
5
"errors"
8
6
"fmt"
9
-
"hash/fnv"
10
7
"log/slog"
11
8
"net/http"
12
9
"path/filepath"
@@ -37,9 +34,8 @@ var serverHeader = []string{"FrankenPHP Caddy"}
37
34
// }
38
35
typeFrankenPHPModulestruct {
39
36
mercureContext
37
+
hotReloadContext
40
38
41
-
// Name for the server. Default: to the worker filename if any, a unique ID otherwise.
42
-
Namestring`json:"name,omitempty"`
43
39
// Root sets the root folder to the site. Default: `root` directive, or the path of the public directory of the embed app it exists.
44
40
Rootstring`json:"root,omitempty"`
45
41
// SplitPath sets the substrings for splitting the URI into two parts. The first matching substring will be used to split the "path info" from the path. The first piece is suffixed with the matching substring and will be assumed as the actual resource (CGI script) name. The second piece will be set to PATH_INFO for the CGI script to use. Default: `.php`.
@@ -50,8 +46,6 @@ type FrankenPHPModule struct {
50
46
Envmap[string]string`json:"env,omitempty"`
51
47
// Workers configures the worker scripts to start.
52
48
Workers []workerConfig`json:"workers,omitempty"`
53
-
// HotReload specifies files to watch for file changes to trigger hot reloads updates. Supports the glob syntax.
0 commit comments