From 8bb9728039eb33b43ef7e9f4469a13fc9d06d753 Mon Sep 17 00:00:00 2001 From: Kevin Whitaker Date: Wed, 22 Feb 2017 20:48:39 -0500 Subject: [PATCH] add config with higher upload limit. Add basic bash run script. Add cmake directives to put these in install location. --- CMakeLists.txt | 2 + run.sh | 2 + wt_config.xml | 612 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 616 insertions(+) create mode 100644 run.sh create mode 100644 wt_config.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index 10924b0..8d60837 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 0000000..214de92 --- /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 0000000..bb90281 --- /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/ + + + + + + + + + + + -- GitLab