vitodeploy / vito

The Ultimate Server Management Tool
https://vitodeploy.com
GNU Affero General Public License v3.0
1.06k stars 166 forks source link

[draft] Add load balancer server type #244

Closed austinkregel closed 2 days ago

austinkregel commented 3 months ago

This PR aims to add a new server type for load balancing with nginx. Inspired in part by this discussion thread, and my personal usage of load balancing servers 😄

Goal: Deploy a Load Balancing server from the UI

Acceptance Criteria:

Optional concepts to explore:

Old Laravel Forge load balancing config page to convey basic page layout. Exact style, format, or design will vary. image

rtraselbd commented 3 months ago

Go ahead, waiting for it.

austinkregel commented 3 months ago

I've fallen into a huge rabbit hole learning about Bison and language parsing 😵 I found an article about using bison and PHP to parse the Nginx config into AST and have been able to extend the project and I might be able to fully support all nginx directives :eyes:

With one of the goal being more advanced nginx config parsing and eventually editing so projects like Vito can work with any existing config.

With that said, I've lost about 2 weeks in this hole 🙈 a little over half a week but it feels like longer 😂 I need a bit of a break to re-calibrate, and reset to tackle this specifically and not nginx parsing as a whole.

saeedvaziry commented 3 months ago

@austinkregel first of all thanks for this contribution, I am sure it will be a big update.

second, I am sure there is easier workarounds and personally don't think parsing nginx files is really needed.

Feel free to reach me on Discord to have a chat about it.

saeedvaziry commented 2 days ago

@austinkregel shall we close this PR?