initial commit
This commit is contained in:
commit
584aad56b8
19 changed files with 390 additions and 0 deletions
10
example.service/run
Executable file
10
example.service/run
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue