Benjamin-Loison / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
0 stars 0 forks source link

[Feature]: Avoid having to execute `httpd` (and `sshd`?) #7

Open Benjamin-Loison opened 7 months ago

Benjamin-Loison commented 7 months ago

However make sure that for SSH only a given IP can access the associated port and for HTTP to only allow localhost.

When running httpd is necessary? For instance let us consider a case where I httpd to have curl http://localhost:8080 working, then I reboot the phone and open Termux, in this case I have to run httpd.

ls $PREFIX/var/service/
busybox-httpd  crond  ftpd  httpd  postgres  sshd  telnetd  tor
ls $PREFIX/var/service/httpd
down  log  run  supervise
sv-enable httpd
ls $PREFIX/var/service/httpd
log  run  supervise

I confirm that now once Termux has been open once (maybe it is not necessary anymore) the HTTP server works contrarily to previously.

Related to Benjamin_Loison/termux-boot/issues/1.

Feature description

https://wiki.termux.com/wiki/Termux-services

Additional information

Not read.