diff --git a/CMakeLists.txt b/CMakeLists.txt index 10924b02595a441ddfb91ba632f0d9f85bb09b42..8d60837fe7566486221298a670f7b829993047df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,3 +13,5 @@ add_executable(arbitrateor src/main.cpp src/WebInterface.cpp src/GroovePlayer.cp target_link_libraries(arbitrateor ${Wt_LIBRARIES} ${GROOVE_LIBRARY} ${GROOVE_FINGERPRINT_LIBRARY} ${GROOVE_PLAYER_LIBRARY} ${TAGLIB_LIBRARY} pthread boost_system stdc++fs) #TODO get threading links based on platform. Remove gcc experimental fs when official c++17 exists. install(TARGETS arbitrateor RUNTIME DESTINATION bin) +install(FILES ${CMAKE_SOURCE_DIR}/wt_config.xml DESTINATION bin) +install(FILES ${CMAKE_SOURCE_DIR}/run.sh DESTINATION bin) diff --git a/run.sh b/run.sh new file mode 100644 index 0000000000000000000000000000000000000000..214de92e7261ecb202204b50e60bd613f35c515e --- /dev/null +++ b/run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./arbitrateor --docroot /use/share/Wt --http-address 0.0.0.0 --http-port 8080 -c wt_config.xml diff --git a/wt_config.xml b/wt_config.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb902817fc9be0d0b1165c56fc9d2bb878d79f9b --- /dev/null +++ b/wt_config.xml @@ -0,0 +1,612 @@ + + + + + + + + + + + + + + + + 1 + + + + URL + + + true + + + 600 + + + 50 + + + + + + + + + /var/run/wt + + + 1 + + + + + + + 10 + + + 128 + + + + false + + + + + + * -debug + + + 30000 + + + 16 + + + 1 + + + false + + + false + + + false + + + true + + + Load basic HTML + + + false + + + true + + + 500 + + + 200 + + + + + + + + + .*Googlebot.* + .*msnbot.* + .*Slurp.* + .*Crawler.* + .*Bot.* + .*ia_archiver.* + .*Twiceler.* + + + + + + + false + + + false + + + true + + + + + + + + + + + + + resources/ + + + ext/ + + + + + + + + + + +