This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
IP- and cookie-based authorization guard for haproxy | |
https://www.haproxy.com/blog/5-ways-to-extend-haproxy-with-lua/ | |
Guard checks permit in memcached, any value of key 'Allow-Address-<Address>' or 'Allow-Session-<Session>' will be accepted | |
Where: | |
<Address> is client's IP-address | |
<Session> is value of cookie 'XGuardKey' | |
Parameter 'action' can be: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef REWIND_H | |
#define REWIND_H | |
#include <stdint.h> | |
#include <netinet/in.h> | |
#ifdef __cplusplus | |
extern "C" | |
{ | |
#endif |
NewerOlder