File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1919 # }
2020 #}
2121
22- root * publi c/
22+ root public/
2323 encode zstd br gzip
2424
2525 # Uncomment the following lines to enable Mercure and Vulcain modules
Original file line number Diff line number Diff line change @@ -24,16 +24,17 @@ depuis un répertoire nommé `private-files/`.
2424Tout d'abord, ajoutez la configuration suivante à votre ` Caddyfile ` pour activer cette fonctionnalité :
2525
2626``` patch
27- root * public/
27+ root public/
2828 # ...
2929
3030+ # Needed for Symfony, Laravel and other projects using the Symfony HttpFoundation component
3131+ request_header X-Sendfile-Type x-accel-redirect
32+ + request_header X-Accel-Mapping ../private-files=/private-files
3233+
3334+ intercept {
3435+ @accel header X-Accel-Redirect *
3536+ handle_response @accel {
36- + root * private-files/
37+ + root private-files/
3738+ rewrite * {resp.header.X-Accel-Redirect}
3839+ method * GET
3940+
Original file line number Diff line number Diff line change @@ -24,16 +24,17 @@ from a directory named `private-files/`.
2424First, add the following configuration to your ` Caddyfile ` to enable this feature:
2525
2626``` patch
27- root * public/
27+ root public/
2828 # ...
2929
3030+ # Needed for Symfony, Laravel and other projects using the Symfony HttpFoundation component
3131+ request_header X-Sendfile-Type x-accel-redirect
32+ + request_header X-Accel-Mapping ../private-files=/private-files
3233+
3334+ intercept {
3435+ @accel header X-Accel-Redirect *
3536+ handle_response @accel {
36- + root * private-files/
37+ + root private-files/
3738+ rewrite * {resp.header.X-Accel-Redirect}
3839+ method * GET
3940+
You can’t perform that action at this time.
0 commit comments