shithub: tcp80

ref: 96a392dc08e4cfc4e23c74d061f168e55dfcea01
dir: /README.shithub.md/

View raw version
# To run the shithub software:

```/rc/bin/service/tcp80```:
```
#!/bin/rc

bind /usr/web /mnt/static
exec /bin/tcp80 -r /sys/lib/tcp80 >>[2]/sys/log/httpd/log
```

```/rc/bin/service/tcp443```:
```
#!/bin/rc

bind /usr/web /mnt/static
exec tlssrv -c/sys/lib/tls/cert.pem -lhttpd -r`{cat $3/remote} /bin/tcp80 -r /sys/lib/tcp80 >>[2]/sys/log/httpd/log
```

```/lib/namespace.httpd```:
```
bind /mnt/static /usr/web/static
```