monolithic/overlay/etc/nginx/sites-available/20_upstream.conf
James Kinsman a45516468d
Addition of upstream proxy to resolve slice redirect errors (302 Playstation) (#156)
Addition of Upstream proxy from #60 to test 302 cache impact on PS5
caching
Refactored upstream proxy into lancache standard structure.
Simplified both location blocks into a single file rather than further
delegated folders
Fixed spacing & indents
2022-11-12 12:10:20 +00:00

17 lines
655 B
Text

# Upstream server to proxy and handle inconsistent 302 redirects
# All cache traffic is passed through this proxy to allow rewriting of redirects without caching
# This is particularly important for sony / ps5 as upstreams redirect between them which confuses slice map on caching
server {
# Internal bind on 3128, this should not be externally mapped
listen localhost:3128 reuseport;
# No access_log tracking as all requests to this instance are already logged through monolithic
# access_log /data/logs/upstream-access.log cachelog;
error_log /data/logs/upstream-error.log;
include /etc/nginx/sites-available/upstream.conf.d/*.conf;
}