openwisp / ansible-openwisp2

Ansible role that installs and upgrades OpenWISP.
https://openwisp.io/docs/dev/ansible/
BSD 3-Clause "New" or "Revised" License
474 stars 136 forks source link

Nginx startup fails on server with existing reverse proxy #447

Closed smcpeck closed 9 months ago

smcpeck commented 11 months ago

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

nemesifier commented 9 months ago

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