hyperpiped/conf/piped/api.conf

26 lines
717 B
Plaintext
Raw Normal View History

# 2023-10-13
proxy_cache_path /tmp/pipedapi_cache levels=1:2 keys_zone=pipedapi:4m max_size=2g inactive=60m use_temp_path=off;
server {
listen 80;
server_name pipedapi.domain.com;
set $backend "http://xxx.xxx.xxx.xxx:8301";
aio threads=default;
location ~* \.(jpg|jpeg|png|gif|ico)$ {
expires 30d;
add_header Cache-Control "public, no-transform";
}
location / {
aio threads=default;
proxy_cache pipedapi;
proxy_pass $backend;
proxy_http_version 1.1;
proxy_set_header Connection "keep-alive";
}
}