diff --git a/Running-Caddy-on-Android.md b/Running-Caddy-on-Android.md index 13bd2c1..e3aade0 100644 --- a/Running-Caddy-on-Android.md +++ b/Running-Caddy-on-Android.md @@ -2,6 +2,27 @@ So far, there are two confirmed ways to run Caddy on Android: Termux and adb. (I # Using [Termux](https://termux.com/) (root not required) +### Method 1: getcaddy.com + +This is the easiest way. Ensure curl is installed (`apt install curl`), then: + +```bash +curl https://getcaddy.com | bash +``` + +You can use `-s` to get Caddy with plugins: + +```bash +curl https://getcaddy.com | bash -s ipfilter,jwt +``` + +Allow the download a minute to start after submitting the command. + +Then run `caddy` to start the server! + + +### Method 2: Build from source + This method downloads and builds Caddy from source directly on your device. Put these commands into a bash script and run it. You can, of course, customize this as desired. For example, you may replace nano with any other editor in the [list of available packages](https://github.com/termux/termux-packages/tree/master/packages).