Correction du fichier de conf
This commit is contained in:
parent
52f63fb3f0
commit
b722d7668d
|
@ -4,12 +4,12 @@
|
||||||
# Set to yes if you wish to produce a single binary instead
|
# Set to yes if you wish to produce a single binary instead
|
||||||
# of a dynamic library. If you set this to yes you must also
|
# of a dynamic library. If you set this to yes you must also
|
||||||
# set kore_source together with kore_flavor.
|
# set kore_source together with kore_flavor.
|
||||||
#single_binary=no
|
#single_binary=yes
|
||||||
#kore_source=/home/joris/src/kore
|
#kore_source=/home/joris/src/kore
|
||||||
#kore_flavor=
|
#kore_flavor=
|
||||||
|
|
||||||
# The flags below are shared between flavors
|
# The flags below are shared between flavors
|
||||||
cflags=-Wall -Wmissing-declarations -Wshadow
|
cflags=-Wall -Wmissing-declarations -Wshadow -I/usr/local/include
|
||||||
cflags=-Wstrict-prototypes -Wmissing-prototypes
|
cflags=-Wstrict-prototypes -Wmissing-prototypes
|
||||||
cflags=-Wpointer-arith -Wcast-qual -Wsign-compare
|
cflags=-Wpointer-arith -Wcast-qual -Wsign-compare
|
||||||
ldflags=-lsqlite3
|
ldflags=-lsqlite3
|
||||||
|
@ -20,18 +20,23 @@ cxxflags=-Wall -Wmissing-declarations -Wshadow
|
||||||
cxxflags=-Wpointer-arith -Wcast-qual -Wsign-compare
|
cxxflags=-Wpointer-arith -Wcast-qual -Wsign-compare
|
||||||
|
|
||||||
# Mime types for assets served via the builtin asset_serve_*
|
# Mime types for assets served via the builtin asset_serve_*
|
||||||
#mime_add=txt:text/plain; charset=utf-8
|
mime_add=jpg:image/jpeg
|
||||||
#mime_add=png:image/png
|
mime_add=css:text/css; charset=utf-8
|
||||||
#mime_add=html:text/html; charset=utf-8
|
mime_add=txt:text/plain; charset=utf-8
|
||||||
|
mime_add=png:image/png
|
||||||
|
mime_add=html:text/html; charset=utf-8
|
||||||
|
|
||||||
dev {
|
dev {
|
||||||
# These flags are added to the shared ones when
|
# These flags are added to the shared ones when
|
||||||
# you build the "dev" flavor.
|
# you build the "dev" flavor.
|
||||||
cflags=-g
|
cflags=-g
|
||||||
cxxflags=-g
|
cxxflags=-g
|
||||||
}
|
}
|
||||||
|
|
||||||
#prod {
|
prod {
|
||||||
# You can specify additional flags here which are only
|
# You can specify additional flags here which are only
|
||||||
# included if you build with the "prod" flavor.
|
# included if you build with the "prod" flavor.
|
||||||
#}
|
cflags=-g
|
||||||
|
cxxflags=-g
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -27,6 +27,7 @@ authentication auth_example {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
domain * {
|
domain * {
|
||||||
attach notls
|
attach notls
|
||||||
|
|
||||||
|
@ -34,20 +35,36 @@ domain * {
|
||||||
accesslog kore_access.log
|
accesslog kore_access.log
|
||||||
|
|
||||||
|
|
||||||
route / portal_user_load
|
route / {
|
||||||
route /css/style.css asset_serve_style_css
|
handler portal_user_load
|
||||||
route /js/theme-switcher.js asset_serve_theme_switcher_js
|
methods post get
|
||||||
route /signup create_user
|
validate post login v_login
|
||||||
route /portal/bienvenue private_portal auth_example
|
validate post password v_password
|
||||||
route /logout v_session_remove
|
}
|
||||||
|
|
||||||
|
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 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
|
||||||
|
}
|
||||||
|
|
||||||
params post / {
|
|
||||||
validate login v_login
|
|
||||||
validate password v_password
|
|
||||||
}
|
|
||||||
params post /signup {
|
|
||||||
validate login v_login
|
|
||||||
validate password v_password
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue