mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing haproxy and gunicorn url length issues. This ones for @misc.
This commit is contained in:
parent
6102c8e613
commit
e35808f8bf
5 changed files with 15 additions and 9 deletions
|
@ -3772,7 +3772,7 @@
|
|||
"-all_load",
|
||||
);
|
||||
PRODUCT_NAME = NewsBlur;
|
||||
PROVISIONING_PROFILE = "0a21ce12-0604-4e59-b0b1-1aa2b90afaa5";
|
||||
PROVISIONING_PROFILE = "45143eee-33c3-4c7b-82e2-4b3ac0eb2170";
|
||||
STRIP_INSTALLED_PRODUCT = NO;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
"WARNING_CFLAGS[arch=*]" = "-Wall";
|
||||
|
@ -3810,7 +3810,7 @@
|
|||
"-all_load",
|
||||
);
|
||||
PRODUCT_NAME = NewsBlur;
|
||||
PROVISIONING_PROFILE = "0a21ce12-0604-4e59-b0b1-1aa2b90afaa5";
|
||||
PROVISIONING_PROFILE = "45143eee-33c3-4c7b-82e2-4b3ac0eb2170";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#import <MobileCoreServices/MobileCoreServices.h>
|
||||
|
||||
//#define DEBUG 1
|
||||
//#define PROD_DEBUG 1
|
||||
#define PROD_DEBUG 1
|
||||
|
||||
#ifdef DEBUG
|
||||
#define BACKGROUND_REFRESH_SECONDS -5
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
// Get the path for the request
|
||||
NSString *pathString = [[request URL] absoluteString];
|
||||
|
||||
if (!pathString) return [super cachedResponseForRequest:request];
|
||||
|
||||
// See if we have a substitution file for this path
|
||||
NSString *substitutionFileName = [self substitutePath:pathString];
|
||||
BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:substitutionFileName];
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
global
|
||||
maxconn 10000
|
||||
maxconn 100000
|
||||
user haproxy
|
||||
group haproxy
|
||||
daemon
|
||||
ca-base /srv/newsblur/config/certificates
|
||||
crt-base /srv/newsblur/config/certificates
|
||||
tune.bufsize 32000
|
||||
tune.maxrewrite 8196
|
||||
log 127.0.0.1 local0 notice
|
||||
# log 127.0.0.1 local1 info
|
||||
log 127.0.0.1 local1 debug
|
||||
|
||||
defaults
|
||||
log global
|
||||
maxconn 10000
|
||||
maxconn 100000
|
||||
mode http
|
||||
option forwardfor
|
||||
option http-server-close
|
||||
|
@ -35,17 +37,17 @@ frontend public
|
|||
# Redirect all HTTP traffic to HTTPS
|
||||
# redirect scheme https if !{ ssl_fc }
|
||||
|
||||
acl mx_mode nbsrv(maintenance) lt 1
|
||||
acl gunicorn_dead nbsrv(gunicorn) lt 1
|
||||
acl nginx_dead nbsrv(nginx) lt 1
|
||||
acl mx_mode nbsrv(maintenance) lt 1
|
||||
|
||||
monitor-uri /status
|
||||
monitor fail if mx_mode
|
||||
monitor fail if gunicorn_dead
|
||||
monitor fail if nginx_dead
|
||||
monitor fail if mx_mode
|
||||
|
||||
use_backend node_socket if { path_beg /socket.io/ }
|
||||
use_backend node_favicon if { path_beg /rss_feeds/icon }
|
||||
use_backend node_favicon if { path_beg /rss_feeds/icon/ }
|
||||
use_backend nginx if { path_beg /media/ }
|
||||
use_backend nginx if { path_beg /static/ }
|
||||
use_backend nginx if { path_beg /favicon }
|
||||
|
|
|
@ -15,6 +15,8 @@ timeout = 120
|
|||
max_requests = 1000
|
||||
x_forwarded_for_header = "X-FORWARDED-FOR"
|
||||
forwarded_allow_ips = "*"
|
||||
limit_request_line = 16000
|
||||
limit_request_fields = 1000
|
||||
|
||||
if GIGS_OF_MEMORY > NUM_CPUS:
|
||||
workers = NUM_CPUS
|
||||
|
|
Loading…
Add table
Reference in a new issue