Correction du fichier de conf

This commit is contained in:
kitoy 2023-04-09 23:17:01 +02:00
parent 52f63fb3f0
commit b722d7668d
3 changed files with 46 additions and 24 deletions

View File

@ -4,34 +4,39 @@
# 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
# set kore_source together with kore_flavor.
#single_binary=no
#single_binary=yes
#kore_source=/home/joris/src/kore
#kore_flavor=
# 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=-Wpointer-arith -Wcast-qual -Wsign-compare
ldflags=-lsqlite3
#a rejouter pour linux
#ldflag=-lcrypt
ldflags=-L/usr/local/lib
cxxflags=-Wall -Wmissing-declarations -Wshadow
cxxflags=-Wall -Wmissing-declarations -Wshadow
cxxflags=-Wpointer-arith -Wcast-qual -Wsign-compare
# Mime types for assets served via the builtin asset_serve_*
#mime_add=txt:text/plain; charset=utf-8
#mime_add=png:image/png
#mime_add=html:text/html; charset=utf-8
mime_add=jpg:image/jpeg
mime_add=css:text/css; 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 {
# These flags are added to the shared ones when
# you build the "dev" flavor.
cflags=-g
cxxflags=-g
cflags=-g
cxxflags=-g
}
#prod {
prod {
# You can specify additional flags here which are only
# included if you build with the "prod" flavor.
#}
cflags=-g
cxxflags=-g
}

View File

@ -27,6 +27,7 @@ authentication auth_example {
}
domain * {
attach notls
@ -34,20 +35,36 @@ domain * {
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
route /portal/bienvenue private_portal auth_example
route /logout v_session_remove
route / {
handler portal_user_load
methods post get
validate post login v_login
validate post password v_password
}
params post / {
validate login v_login
validate password v_password
}
params post /signup {
validate login v_login
validate 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 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
}
}

BIN
kore.core

Binary file not shown.