azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.65k stars 130 forks source link

[BUG]: PHP FastCGI support? #277

Closed Starstrike closed 4 months ago

Starstrike commented 4 months ago

What happened?

Currently I use Caddy to connect to a FastCGI server to handle connections from a static page to MySQL. I don't see an option to configure that here in Cosmos. Is there PHP FastCGI support that I'm just not seeing?

What should have happened?

Should have seen an option to connect to fastcgi to handle the php files that allow my static site to connect to mysql

How to reproduce the bug?

  1. Go to create a URL
  2. Make it a Static Page
  3. See there are no options to connect to a fastcgi container to handle php files

Relevant log output

No response

Other details

No response

System details

azukaar commented 4 months ago

I do not think it should be implemented in Cosmos itself, instead I would suggest using a container like this one: https://github.com/KTOmega/docker-nginx-fastcgi

That you can then pick up using Cosmos' proxy