The SERVER_NAME issue when using laravel-multidomain in a Traefik environment
https://github.com/gecche/laravel-multidomain The project I'm working on this time has a lot of subdomains, and each subdomain needs to connect to a different S
https://github.com/gecche/laravel-multidomain
The project I'm working on this time has a lot of subdomains, and each subdomain needs to connect to a different SQL database... so I used the package above, but ran into a problem.
SERVER_NAME is obtained from nginx's site.conf, but since I use Traefik,
server_name default;
and have it configured and running that way...
Of course, it might be possible to configure a different nginx site.conf for each subdomain, but... doesn't Traefik already route them separately anyway?