portal_user/conf/portal_user.conf

53 lines
993 B
Plaintext
Raw Normal View History

2022-02-17 06:39:22 +01:00
# portal_user configuration
server notls {
2022-02-17 07:14:05 +01:00
bind 127.0.0.1 8888
2022-02-17 06:39:22 +01:00
tls no
}
load ./portal_user.so init
2022-02-17 06:39:22 +01:00
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
2022-02-17 07:14:05 +01:00
validator v_session function v_session_validate
2022-02-17 06:39:22 +01:00
pledge wpath cpath flock
2022-02-17 07:14:05 +01:00
authentication auth_example {
authentication_type cookie
authentication_value session_id
authentication_validator v_session
authentication_uri /
}
2022-02-17 06:39:22 +01:00
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
2022-02-17 07:14:05 +01:00
route /portal/bienvenue asset_serve_private_test_html auth_example
2022-02-17 06:39:22 +01:00
params post / {
validate login v_login
validate password v_password
}
params post /signup {
validate login v_login
validate password v_password
}
}