termux_nginx.conf 484 B

123456789101112131415
  1. ##add this configuration to /data/data/com.termux/files/usr/etc/nginx/conf.d/
  2. server {
  3. # server anonymity
  4. # listen only localhost to reject requests from outside
  5. listen 127.0.0.1:8090;
  6. # disable server tokens
  7. server_tokens off;
  8. # disable port redirect
  9. port_in_redirect off;
  10. ##
  11. root /data/data/com.termux/files/usr/var/www/hidden-service/hidden_site_generator/public;
  12. index index.html;
  13. }