@stux No, in nginx you'd use not 0.0.0.0 but the IP of the "external" server where you put the streaming. The 0.0.0.0 would be in BIND=0.0.0.0 in the systemd service file for your streaming on the external server.
Environment variables go into .env.production
@Gargron Okay got it thanks!
Can I also create a second upstream for the "local" sidekiq processes(nginx side)