nobotgate/example.service/run
2026-09-08 18:36:12 +02:00

10 lines
289 B
Bash
Executable file

#!/bin/sh
# service that runs a web server protected with nobotgate.
# if the user provided a valid token, it will exec into
# ./on-valid, if not, into ./on-invalid.
exec \
envuidgid www \
tcpserver -U 127.0.0.1 80 \
../build/nobotgate ./tokens \
./on-valid \
./on-invalid