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 # 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
#a rejouter pour linux #a rejouter pour linux
#ldflag=-lcrypt #ldflag=-lcrypt
ldflags=-L/usr/local/lib ldflags=-L/usr/local/lib
cxxflags=-Wall -Wmissing-declarations -Wshadow 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
}

View File

@ -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 }
params post / { route /css/style.css {
validate login v_login handler asset_serve_style_css
validate password v_password }
}
params post /signup { route /js/theme-switcher.js {
validate login v_login handler asset_serve_theme_switcher_js
validate password v_password }
}
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.