Closed slickmoon closed 1 month ago
@slickmoon yep adding hostname fixes it, is it all good now?
Yep it works now. I'm having a separate issue with the /auth/signin page however as I'm hosting splitpro under a subfolder of my domain (mydomain.com/splitpro). You'd expect that any subpages would appear underneath this subfolder (EG: mydomain.com/splitpro/auth/signin) however when redirecting it discards the subfolder which breaks the reverse proxy (mydomain.com/auth/signin).
On the hostname problem: I'm not sure what best practice is a NextJS app web server, however it's not uncommon to use this network layout to provide secure boundaries between public, private and backend services. Is it possible to fix this issue in the code which creates the listeners for the web server?
lemme see what i can do
@slickmoon what's the nextauth url you gave in env variable? it should be mydomain.com/splitpro and not mydomain.com.
that should fix the problem
closing this for now!
I'm attempting to host split-pro behind an nginx reverse proxy using docker. In my setup, I have isolated applications into their own networks and if they are exposed to the internet, they are also joined to the network hosting my reverse proxy container. This network isolation has been done to keep database containers away from those that are exposed to the internet.
The docker compose file looks something like this:
When running the example docker compose file the split-pro app will only listen on the IP address assigned to eth0. As the reverse proxy resides in another network however, connectivity to that network is provided by another network interface (let's call it eth1 in this case). This means that the app is not accessible via the reverse proxy.
ifconfig output
Start-up logs and netstat output:
I'm pretty new to NextJS apps but I've found it's fairly trivial to solve this problem by adding a
HOSTNAME=0.0.0.0
environment variable to the container like in the updated compose below:Start-up logs and netstat output after adding env variable: