2020-05-23 22:13:11 +02:00
|
|
|
declare -A cfg
|
|
|
|
|
2021-01-15 20:23:21 +01:00
|
|
|
cfg[ip]=0.0.0.0 # IP address to bind to - use 0.0.0.0 to bind to all
|
2020-09-18 11:11:14 +02:00
|
|
|
|
|
|
|
cfg[http]=true # enables/disables listening on HTTP
|
2021-01-15 20:23:21 +01:00
|
|
|
cfg[port]=1341 # HTTP port
|
2020-05-23 22:13:11 +02:00
|
|
|
|
2020-10-02 23:40:02 +02:00
|
|
|
cfg[namespace]='app'
|
|
|
|
|
|
|
|
cfg[root]='webroot/'
|
2020-05-23 22:13:11 +02:00
|
|
|
cfg[index]='index.shs'
|
|
|
|
cfg[autoindex]=true
|
|
|
|
|
|
|
|
cfg[auth_required]=false
|
|
|
|
cfg[auth_realm]="Laura is cute <3"
|
|
|
|
|
2020-09-18 11:11:14 +02:00
|
|
|
cfg[ssl]=false # enables/disables listening on HTTPS
|
2020-05-23 22:13:11 +02:00
|
|
|
cfg[ssl_port]=8443
|
|
|
|
cfg[ssl_cert]=''
|
|
|
|
cfg[ssl_key]=''
|
|
|
|
|
|
|
|
cfg[extension]='shs'
|
2020-10-29 16:13:14 +01:00
|
|
|
cfg[extra_headers]='server: HTTP.sh/0.94 (devel)'
|
2020-05-23 22:13:11 +02:00
|
|
|
|
2020-10-29 16:13:14 +01:00
|
|
|
cfg[title]='HTTP.sh 0.94'
|
2020-05-29 10:43:22 +02:00
|
|
|
|
2020-09-18 11:11:14 +02:00
|
|
|
cfg[php_enabled]=false # enable PHP script evalutaion (requires PHP)
|
|
|
|
cfg[python_enabled]=false # enable Python script evalutaion (requires Python)
|
2020-06-02 00:01:44 +02:00
|
|
|
|
2020-10-02 23:40:02 +02:00
|
|
|
cfg[log]='log' # filename
|
2020-07-27 00:01:35 +02:00
|
|
|
|
2020-09-18 11:11:14 +02:00
|
|
|
# proxy functionality is very WiP
|
2020-07-27 00:01:35 +02:00
|
|
|
cfg[proxy]=false
|
2020-10-02 23:40:02 +02:00
|
|
|
cfg[proxy_url]='http://example.com/'
|
2020-10-29 16:13:14 +01:00
|
|
|
|
|
|
|
# mail handler config
|
|
|
|
cfg[mail]=""
|
|
|
|
cfg[mail_server]=""
|
|
|
|
cfg[mail_password]=""
|
|
|
|
cfg[mail_ssl]=true
|
|
|
|
cfg[mail_ignore_bad_cert]=false
|