41 lines
705 B
Plaintext
41 lines
705 B
Plaintext
# portal_user configuration
|
|
|
|
server notls {
|
|
bind 192.168.1.6 8888
|
|
tls no
|
|
}
|
|
|
|
load ./sqlite3.so
|
|
|
|
http_body_max 1024000000
|
|
http_body_disk_offload 1024000
|
|
|
|
workers 1
|
|
|
|
|
|
validator v_login regex ^[-_.a-zA-Z0-9]*$
|
|
validator v_password function v_password_func
|
|
pledge wpath cpath flock
|
|
domain * {
|
|
attach notls
|
|
|
|
|
|
accesslog kore_access.log
|
|
|
|
|
|
route / portal_user_load
|
|
route /css/style.css asset_serve_style_css
|
|
route /js/theme-switcher.js asset_serve_theme_switcher_js
|
|
route /signup create_user
|
|
|
|
params post / {
|
|
validate login v_login
|
|
validate password v_password
|
|
}
|
|
params post /signup {
|
|
validate login v_login
|
|
validate password v_password
|
|
}
|
|
|
|
}
|