via

Simple pubsub server inspired by https://patchbay.pub/
git clone https://git.ce9e.org/via.git

commit
b4fa74bc211f1bf11d67a5e0620841eeeec1a546
parent
f17e1298e4d8d887d6803b17b676979bd3581170
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-05-04 17:09
rm rate limiting as it does more harm than good

Diffstat

M via.nginx 6 ------

1 files changed, 0 insertions, 6 deletions


diff --git a/via.nginx b/via.nginx

@@ -1,5 +1,3 @@
    1    -1 limit_req_zone $binary_remote_addr zone=via:1m rate=10r/s;
    2    -1 
    3     1 server {
    4     2 	server_name _;
    5     3 
@@ -13,10 +11,6 @@ server {
   13    11 		add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
   14    12 		add_header 'Link' '<https://github.com/xi/via>; rel="help"';
   15    13 
   16    -1 		# https://www.nginx.com/blog/rate-limiting-nginx/
   17    -1 		limit_req zone=via burst=20 nodelay;
   18    -1 		# client_max_body_size 1m;  # default is fine
   19    -1 
   20    14 		if ($request_method = 'OPTIONS') {
   21    15 			add_header 'Access-Control-Max-Age' 1728000;
   22    16 			add_header 'Content-Type' 'text/plain; charset=utf-8';