← back to Rentv Ad Engine
deploy/nginx-advertisers.conf
21 lines
# Mount the RENTV Ad Engine at rentv.agentabrams.com/advertisers
# Add this INSIDE the existing rentv.agentabrams.com server{} block on Kamatera
# (the vhost that currently proxies to the rentv app on :9704). No change to the
# rentv Express app itself — this is a sibling proxy to the ad-engine on :9789.
#
# The ad-engine pm2 process must run with BASE_PATH=/advertisers so it injects
# <base href="/advertisers/"> and its relative api/img paths resolve correctly.
location = /advertisers { return 301 /advertisers/; }
location /advertisers/ {
proxy_pass http://127.0.0.1:9793/; # trailing slash strips the /advertisers/ prefix
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# The ad-engine enforces its own Basic Auth (admin:DW2024!) — it is an INTERNAL
# sales tool (advertiser contacts + draft emails), so keep it gated. If the rentv
# vhost already has Basic Auth at the server level, that layer applies too.
}