diff --git a/install-caddy b/install-caddy index 3b0c755..35a6d53 100755 --- a/install-caddy +++ b/install-caddy @@ -7,6 +7,7 @@ installer_base="https://git.daplie.com/Daplie/caddy-installer/raw/master" caddy_systemd_service="$installer_base/etc/systemd/system/caddy.service" caddy_systemd_tmpfiles="$installer_base/etc/tmpfiles.d/caddy.conf" caddy_launchd_service="$installer_base/Library/LaunchDaemons/com.caddyserver.web.plist" +caddy_localhost_index="$installer_base/srv/www/index.html" all_oses="windows,darwin,linux,freebsd,openbsd" all_arches="arm64,amd64,386,armv5,armv6l,armv7l" @@ -320,18 +321,10 @@ CADDY_EOF $sudo_cmd chmod 755 $PREFIX/srv/www/localhost if [ ! -f "$PREFIX/srv/www/localhost/index.html" ] || [ -z "$(cat $PREFIX/srv/www/localhost)" ]; then - cat <<'CADDY_EOF' >> $PREFIX/tmp/$caddy_dir/index.html - - -
-Here's some info to help you know what to do next
+ ++ Your sites are in /srv/www. In fact, this page is served from /srv/www/localhost/index.html +
++ If you have a site, say example.com, you can put it in /srv/www/example.com and then edit the Caddyfile + to reflect the change: +
+https://example.com {
+ tls john@email.com
+ root /srv/www/example.com
+}
+https://www.example.com {
+ redir https://example.com
+}
+
+
+ /usr/local/bin/caddy
+/etc/caddy/Caddyfile
+/etc/ssl/caddy/
+/etc/ssl/caddy/acme/
+/etc/ssl/caddy/ocsp/
+/etc/systemd/system/caddy.service
+/etc/tmpfiles.d/caddy.conf
+/srv/www/localhost/index.html
+/var/log/caddy/
+/Library/LaunchDaemons/com.caddyserver.web.plist
+
+
+ Windows | +Mac | +Linux | +
---|---|---|
The world may never know... | +
|
+
|
+