Hey guys, this is my first post here, I am hoping I respect all the rules of this wonderful forum.
I am setting up some services, moving from Ubuntu to FreeBSD in my company.
We have 3 environments:
- Test: all services in one server
- Acceptance: Database and Redis in one server, rest of services in another server.
- Production: same as acceptance, but with a database cluster.
I am starting with test environment transition to FreeBSD obviously, and wondering about NGINX redirecting to several jails.
The plan is to have several jails, of which the following do already work with pf firewall and IP redirection via loopback interface:
- Go application builder
- NPM website builder
- Go apps as daemons (each app its own jail)
- MariaDB jail
- Redis jail
I also need to setup a jail with that has websites available via port 80 and 443, and another jail with a PHP application ( using PHP FPM).
As it may seem obvious i need to use NGINX for both jails above mentioned.
Would it be best to :
- install NGINX on both jails and simply redirect traffic via pf to each jail’s separate NGINX
- install NGINX on the host, and work out a way to redirect traffic to the jails via NGINX
- install both websites and PHP application with fpm on one jail with its own NGINX
Thanks in advance, looking forward to learn a bit more about best practices in this area.
I am setting up some services, moving from Ubuntu to FreeBSD in my company.
We have 3 environments:
- Test: all services in one server
- Acceptance: Database and Redis in one server, rest of services in another server.
- Production: same as acceptance, but with a database cluster.
I am starting with test environment transition to FreeBSD obviously, and wondering about NGINX redirecting to several jails.
The plan is to have several jails, of which the following do already work with pf firewall and IP redirection via loopback interface:
- Go application builder
- NPM website builder
- Go apps as daemons (each app its own jail)
- MariaDB jail
- Redis jail
I also need to setup a jail with that has websites available via port 80 and 443, and another jail with a PHP application ( using PHP FPM).
As it may seem obvious i need to use NGINX for both jails above mentioned.
Would it be best to :
- install NGINX on both jails and simply redirect traffic via pf to each jail’s separate NGINX
- install NGINX on the host, and work out a way to redirect traffic to the jails via NGINX
- install both websites and PHP application with fpm on one jail with its own NGINX
Thanks in advance, looking forward to learn a bit more about best practices in this area.