rpictrl/nginx.conf
2025-03-26 14:51:39 +04:00

35 lines
577 B
Nginx Configuration File

user nginx;
pid /var/run/nginx.pid;
worker_processes 4;
events {
worker_connections 1024;
}
http {
access_log off;
default_type application/octet-stream;
gzip on;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
upstream rpictrl {
server 127.0.0.1:5544;
keepalive 2;
}
server {
listen 80 default_server;
server_name 10.3.141.1 localhost;
location / {
proxy_pass http://rpictrl;
proxy_http_version 1.1;
proxy_set_header Connection "";
}
}
}