Add deployment traces for the JPpro proxy node, RackNerd origin hosts, catproxy boundary changes, local speed checks, and Sub2API rate-limit behavior. Keep remote secrets excluded while tracking sanitized nginx, compose, plan, and operational memory documents.
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name origin.proxy.api.lilifamily.com;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/origin.proxy.api.lilifamily.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/origin.proxy.api.lilifamily.com/privkey.pem;
|
|
include /etc/letsencrypt/options-ssl-nginx.conf;
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
|
|
|
server_tokens off;
|
|
underscores_in_headers on;
|
|
client_max_body_size 100m;
|
|
|
|
location / {
|
|
allow 151.242.164.72;
|
|
deny all;
|
|
|
|
if ($proxy_ng_token_ok = 0) {
|
|
return 403;
|
|
}
|
|
|
|
proxy_pass http://127.0.0.1:8080;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $sub2api_host;
|
|
proxy_set_header X-Real-IP $http_x_real_ip;
|
|
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
proxy_set_header X-Forwarded-Host $sub2api_host;
|
|
proxy_set_header X-Proxy-Ng-Token "";
|
|
proxy_set_header X-Proxy-Ng-Node $http_x_proxy_ng_node;
|
|
proxy_redirect https://origin.proxy.api.lilifamily.com/ https://$sub2api_host/;
|
|
proxy_redirect https://catproxy.lilifamily.com/ https://$sub2api_host/;
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
proxy_buffering off;
|
|
proxy_request_buffering off;
|
|
}
|
|
}
|