Closed Pierstoval closed 2 years ago
I updated the Generator.php script (and re-executed it afterwards) to add Caddy 2 configuration support
Generator.php
The include keyword doesn't exist anymore in Caddy 2, it was replaced by import, and semicolons are removed too
include
import
I tested it on my dedicated server, I added the rule to site configs and curl-ed it:
curl
debian@piers:/etc/caddy$ curl -I https://stars.pierstoval.com -H "Referer: 03e.info" HTTP/2 444 alt-svc: h3=":443"; ma=2592000 content-type: text/plain; charset=utf-8 server: Caddy content-length: 15 date: Mon, 26 Sep 2022 12:31:03 GMT
Technically, you can do the same curl call on your own machine and it should do the same.
run.php
LGTM
Description
I updated the
Generator.php
script (and re-executed it afterwards) to add Caddy 2 configuration supportMotivation and Context
The
include
keyword doesn't exist anymore in Caddy 2, it was replaced byimport
, and semicolons are removed tooHow Has This Been Tested?
I tested it on my dedicated server, I added the rule to site configs and
curl
-ed it:Technically, you can do the same
curl
call on your own machine and it should do the same.Types of changes
Checklist:
run.php
file must be run)