zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

NGINX config stream #1177

Closed rsopcoact closed 4 years ago

rsopcoact commented 4 years ago

Hi there, thanks for the great tool. It works brilliantly.

I am building a webrtc application and I need to configure the reverse proxy with a stream block. The current mup shared proxy settings push the config file I generate into the http block. This results in an error that says 'nginx: [emerg] "stream" directive is not allowed here'. Could you point me in the right direction for how to add the configuration block to the main context of the NGINX config.

rsopcoact commented 4 years ago

I successfully implemented the stream block. I first edited mup code to make the proxy docker run with network set to host. Once the app and all containers wer deployed i then edited the file nginx.conf (/etc/nginx/nginx.conf) in the mup-nginx-proxy docker and added my stream block and edited the worker count to match my needs.

Once that was done I restarted the mup-nginx-docker container from within the host and my app was able to work as intended.