mirror of
https://github.com/falk-werner/webfused
synced 2024-10-27 20:44:08 +00:00
added dependency to libconfig
This commit is contained in:
parent
f371fdaba9
commit
207f18f4fd
@ -24,6 +24,7 @@ addons:
|
||||
- python3-setuptools
|
||||
- python3-wheel
|
||||
- ninja-build
|
||||
- libconfig-dev
|
||||
|
||||
|
||||
before_install:
|
||||
|
@ -9,6 +9,7 @@ pkg_check_modules(FUSE3 REQUIRED fuse3)
|
||||
pkg_check_modules(LWS REQUIRED libwebsockets)
|
||||
pkg_check_modules(JANSSON REQUIRED jansson)
|
||||
pkg_check_modules(UUID REQUIRED uuid)
|
||||
pkg_check_modules(LIBCONFIG REQUIRED libconfig)
|
||||
pkg_check_modules(OPENSSL REQUIRED openssl)
|
||||
pkg_check_modules(WEBFUSE REQUIRED libwebfuse-adapter)
|
||||
|
||||
@ -35,6 +36,7 @@ add_library(userdb STATIC
|
||||
)
|
||||
|
||||
target_include_directories(userdb PUBLIC
|
||||
${LIBCONFIG_INCLUDE_DIRS}
|
||||
${OPENSSL_INCLUDE_DIRS}
|
||||
${JANSSON_INCLUDE_DIRS}
|
||||
)
|
||||
@ -48,6 +50,7 @@ add_executable(webfused
|
||||
|
||||
target_link_libraries(webfused PUBLIC
|
||||
userdb
|
||||
${LIBCONFIG_LIBRARIES}
|
||||
${OPENSSL_LIBRARIES}
|
||||
${WEBFUSE_LIBRARIES}
|
||||
${UUID_LIBRARIES}
|
||||
|
@ -22,6 +22,7 @@ To install dependecies, see below.
|
||||
- [libwebsockets](https://libwebsockets.org/)
|
||||
- [jansson](https://github.com/akheron/jansson)
|
||||
- [openssl](https://www.openssl.org/)
|
||||
- [libconfig](https://hyperrealm.github.io/libconfig/)
|
||||
|
||||
### Installing dependencies
|
||||
|
||||
@ -76,3 +77,8 @@ To install libfuse, meson is needed. Please refer to [meson quick guide](https:/
|
||||
cmake -DWITHOUT_TESTS=ON ..
|
||||
make
|
||||
sudo make install
|
||||
|
||||
#### libconfig
|
||||
|
||||
sudo apt update
|
||||
sudo apt install libconfig-dev
|
||||
|
31
etc/webfused.conf
Normal file
31
etc/webfused.conf
Normal file
@ -0,0 +1,31 @@
|
||||
# Webfuse deamon configuration file
|
||||
|
||||
version = { major = 1, minor = 0 }
|
||||
|
||||
server:
|
||||
{
|
||||
vhost_name = "localhost"
|
||||
port = 8080
|
||||
|
||||
# tls:
|
||||
# {
|
||||
# certificate = "/etc/webfused/cert.pem"
|
||||
# key = "/etc/webfused/key.pem"
|
||||
# }
|
||||
|
||||
# document_root = "/var/www"
|
||||
}
|
||||
|
||||
authentication:
|
||||
{
|
||||
provider = "file"
|
||||
settings:
|
||||
{
|
||||
file = "/etc/webfused/passwd"
|
||||
}
|
||||
}
|
||||
|
||||
filesystems:
|
||||
(
|
||||
{name = "test", mount_point = "/tmp" }
|
||||
)
|
Loading…
Reference in New Issue
Block a user