diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e1a221..4d5f704 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,13 +29,12 @@ add_compile_definitions(CHECKPOINT_VERSION="${CHECKPOINT_VERSION}") find_package(PkgConfig REQUIRED) -pkg_check_modules(deps IMPORTED_TARGET openssl) +pkg_check_modules(deps IMPORTED_TARGET openssl re2) target_include_directories(checkpoint PRIVATE "./subprojects/pistache/include" "./subprojects/glaze/include" - "./subprojects/re2" "./subprojects/tinylates/include" "./subprojects/pistache/subprojects/cpp-httplib" "./subprojects/pistache/subprojects/hinnant-date/include" @@ -44,6 +43,5 @@ target_link_libraries(checkpoint PkgConfig::deps pistache fmt - re2 tinylates ) diff --git a/README.md b/README.md index 2c60e9f..e48835b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ If you are using this, it's almost certain search engines will stop indexing you ## Setup guide -1. Clone and build this repo. You will need `openssl`, `g++>=12`, and deps for `pistache`, `fmt` and `tinylates`. +1. Clone and build this repo. You will need `openssl`, `g++>=12`, `re2`, and deps for `pistache`, `fmt` and `tinylates`. 2. Create a `config.jsonc`. An example one is in `example/`. 3. Adjust the config to your needs. Options are documented with comments in the example config. 4. Set up your IP rules if you want. These allow you to set up IPs that are automatically blocked, or allowed to access without a challenge. This is useful for e.g. search engine scrapers. Some IP ranges can be found in `example/index_bots.jsonc`. diff --git a/subprojects/re2 b/subprojects/re2 deleted file mode 160000 index c84a140..0000000 --- a/subprojects/re2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c84a140c93352cdabbfb547c531be34515b12228