# Insert these locations inside the HTTPS server block for app.glowtps.cn. # Keep 1Panel's generated certificate paths/listen/server_name directives. # This assumes OpenResty can access the host's 127.0.0.1 (host network mode). # Set the site to force HTTPS. Do not expose the upstream port publicly. location = /v1/feedback { client_max_body_size 21m; client_body_timeout 60s; # Avoid persistent proxy copies of feedback media. proxy_request_buffering off; proxy_buffering off; proxy_http_version 1.1; proxy_pass http://127.0.0.1:18080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; # Overwrite any header sent by the client so IP rate limiting cannot be spoofed. proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto https; proxy_set_header Connection ""; proxy_connect_timeout 5s; proxy_send_timeout 180s; proxy_read_timeout 180s; # NEVER retry a feedback POST against another upstream automatically. proxy_next_upstream off; # Disable access logs for this path (no query strings, client IPs or form content). access_log off; } location = /healthz { proxy_pass http://127.0.0.1:18080; access_log off; }