pwsh.exe
cd ~/../Public
mkdir TestCaddy
cd TestCaddy
curl.exe -JOL https://github.com/caddyserver/caddy/releases/download/v2.8.4/caddy_2.8.4_windows_amd64.zip
tar.exe -xf caddy_2.8.4_windows_amd64.zip
mkdir public_html
echo HELLO > public_html\index.html
Start-Process .\caddy.exe -ArgumentList "file-server --listen :2015 --root ./public_html"
Start-Process "http://localhost:2015/"
Created
October 2, 2024 07:49
-
-
Save t-mat/b582bc4200e48f519c06dba20620c489 to your computer and use it in GitHub Desktop.
[Win32]Setup Caddy HTTP file server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment