openwisp/ansible-openwisp2

Nginx startup fails on server with existing reverse proxy

smcpeck opened this issue · 1 comments

While running the playbook, I always have a failure starting up Nginx.

The problem lies in the fact that the server in question has an existing reverse proxy listening on 443 and 80.

It would be nice to have optional control over which ports Nginx will listen on so I can be sure that the playbook doesn't conflict with my existing server setup.

Things seem to be hardcoded here: https://github.com/openwisp/ansible-openwisp2/blob/master/templates/nginx/site-conf.j2#L12

Supporting existing setups is not supported. Use dedicated VMs or patch the role yourself to make it work for you.