mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
Created Running Caddy on Android (markdown)
parent
dd4dc54044
commit
afce4ba7e0
18
Running-Caddy-on-Android.md
Normal file
18
Running-Caddy-on-Android.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Caddy is available for Linux ARM, which means it can run on newer Android phones.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- Android phone with ARM architecture
|
||||||
|
- adb (part of the Android SDK; if you have Android Studio, you already have adb)
|
||||||
|
- A copy of [Caddy for Linux ARM](https://caddyserver.com/download)
|
||||||
|
|
||||||
|
## Basic Instructions
|
||||||
|
|
||||||
|
Assuming the ARM binary is called `caddy`, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
adb push caddy /data/local/tmp
|
||||||
|
adb shell "cd /data/local/tmp; chmod 755 caddy; ./caddy"
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also want to push a Caddyfile. If you set the address to be your phone's IP address on your LAN, you should be able to access it from anywhere in your LAN. (For more fun, set up port forwarding on your border router to bypass the NAT and you should be able to access your phone from anywhere.)
|
Loading…
x
Reference in New Issue
Block a user