Hello.
I want to install a reverse proxy useful because I want to put online my emby server on top of Android 14.
According with this tutorial :
I’ve installed caddy using termux on Android :
# pkg install caddy
Now I can lauch caddy using termux. At this point,according with this tutorial :
https://emby.media/community/index.php?/topic/81476-ssl-made-easier-with-a-reverse-proxy/
I’ve prepared this caddy config file (called caddyfile.txt) :
ziomario.ns0.it {
gzip
timeouts none
proxy / 192.168.1.6:8096 {
transparent
websocket
}
}
that I have saved in :
/storage/emulated/0/Android/data/com.emby.embyserver/files
At this point I’ve installed Magisk and I became root,so,in termux I’ve launched caddy with this command :
:/data/data/com.termux/files/usr/bin/./caddy adapt -c /storage/emulated/0/Android/data/com.emby.embyserver/files/caddyfile.txt
but I get the following error :
Error : unrecognized directive: gzip
and if I remove gzip,I get a similar error :
Error : unrecognized directive: timeouts
So,it’s clear that the configuration file that I’m using is totally wrong if applicable on Android,but its good if caddy runs on Windows.
Can someone help me to write the correct caddy conf file for Android ? thanks.