portal_user/conf/portal_user.conf

73 lines
1.2 KiB
Plaintext

# portal_user configuration
server notls {
bind 127.0.0.1 8888
tls no
}
load ./portal_user.so init
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
validator v_session function v_session_validate
pledge wpath cpath flock
authentication auth_example {
authentication_type cookie
authentication_value session_id
authentication_validator v_session
authentication_uri /
}
domain * {
attach notls
accesslog kore_access.log
route / {
handler portal_user_load
methods post get
validate post login v_login
validate post password v_password
}
route /css/style.css {
handler asset_serve_style_css
}
route /js/theme-switcher.js {
handler asset_serve_theme_switcher_js
}
route /signup {
handler create_user
methods get post
validate post login v_login
validate post password v_password
}
route /portal/bienvenue {
handler private_portal
authenticate auth_example
}
route /logout {
handler v_session_remove
authenticate auth_example
}
}