37 lines
928 B
Plaintext
37 lines
928 B
Plaintext
# WARNING: This is an alpha spec of NSCL 2.0!!
|
|
|
|
host 192.168.1.196 {
|
|
location /secrets {
|
|
root:/var/www/html/hidden
|
|
whitelist-ua:"Mozilla/5.0 (X11; Linux x86_64) Gecko/20100101 Firefox/149.0 Furfox/1.0"
|
|
whitelist-ip:123.45.67.89
|
|
}
|
|
directory:/home/nova/Downloads/test/html
|
|
allowed-methods:GET
|
|
block-ip:match-ip("192.168",2)
|
|
block-ua:match("Discordbot",0),match("Google",0)
|
|
}
|
|
|
|
host cdn.example.com {
|
|
directory:/home/nova/Downloads/test/cdn
|
|
allowed-methods:GET,PUT
|
|
block-ip:10.1.100.2
|
|
block-ua:match("Discordbot",0)
|
|
}
|
|
|
|
host modem.example.com {
|
|
proxy:192.168.2.254
|
|
key-file:/home/nova/Downloads/test/proxykey.pem
|
|
cert-file:/home/nova/Downloads/test/proxycert.pem
|
|
}
|
|
|
|
globals {
|
|
http:1
|
|
https:1
|
|
port:8080
|
|
https-port:8443
|
|
allow-localhost:1
|
|
global-key:/home/nova/Downloads/test/key.pem
|
|
global-cert:/home/nova/Downloads/test/cert.pem
|
|
}
|