File: testservices.conf

package info (click to toggle)
pion 5.0.7%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,048 kB
  • ctags: 3,122
  • sloc: cpp: 14,237; perl: 269; pascal: 152; makefile: 145; sh: 70
file content (72 lines) | stat: -rw-r--r-- 1,269 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
##
## Simple configuration file to test pion-net web services
##

## Adds path to compiled web services built from source tarball
##
path ../services/.libs
path ../bin/Debug

## Hello World Service
##
service /hello HelloService

## Service to echo requests
##
service /echo EchoService

## Service to display & update cookies
##
service /cookie CookieService

## Service to display log events
##
service /log LogService

## Service to serve pion-net documentation
##
service /doc FileService
option /doc directory=../doc/html
option /doc file=../doc/html/index.html
option /doc cache=2
option /doc scan=3

## Use testservices.html as an index page
## 
service /index.html FileService
option /index.html file=../utils/testservices.html
##
service / FileService
option / file=../utils/testservices.html

## Service to demonstrate Authentication interface
##
service /auth EchoService

##
## define type of authentication
##
## MUST be a first command in configuration file
## auth type can be defined once and only once!
##
auth cookie

##
## Add /auth resource to set of password protected
##
restrict /auth

##
## Add /protected resource to set of password protected
##
restrict /protected

##
## define user
##
user stas 123456

##
## define user
##
user mike 123456