SSX3LobbyServer/lib/http/config.hpp

22 lines
686 B
C++
Raw Permalink Normal View History

#pragma once
#include <impl/asio_config.hpp>
// Enables support for reverse proxying.
// This should only be enabled if you're going to host
// behind a proxy server (including Cloudflare.).
#define BASE_HTTP_REVERSE_PROXY_SUPPORT
// Tweaks the behavious of a few things to better adhere to Cloudflare stuff
// #define BASE_HTTP_CLOUDFLARE
// Enables logging of HTTP requests/responses. Note that this only applies to true HTTP sessions,
// WebSocket connections will not be logged.
//
//#define BASE_HTTP_REQUEST_LOGGING
namespace base::http {
using GenericProtocol = asio::generic::stream_protocol;
using GenericStream = BeastStream<GenericProtocol>;
} // namespace base::http