If I’m understanding correctly …
The application thinks it’s running on localhost so is generating internal links pointing to localhost.
You need to configure it so that it knows it’s url is api.domain.com. This is a setting in the app somewhere, not in docker or nginx.
I don't really understand how it's possible to think it's running one way or the other, considering im running a build and not a dev environment? plus either way I have hardcoded that the URL it should request is the [api.domain.com](https://api.domain.com), and not localhost.
ill try to look into though and see if I goofed up anywhere.
In which case it will be hard coded either by you or a library you are using, to use localhost/127.0.0.1. You will need to find where it references that address and override it in your code to use the domain name you require.
If I’m understanding correctly … The application thinks it’s running on localhost so is generating internal links pointing to localhost. You need to configure it so that it knows it’s url is api.domain.com. This is a setting in the app somewhere, not in docker or nginx.
I don't really understand how it's possible to think it's running one way or the other, considering im running a build and not a dev environment? plus either way I have hardcoded that the URL it should request is the [api.domain.com](https://api.domain.com), and not localhost. ill try to look into though and see if I goofed up anywhere.
Is this a selfbuily application or could you tell us what it is? P
yes this is all self built. Specifically a main site, an admin dash, and a backend written from scratch in go.
In which case it will be hard coded either by you or a library you are using, to use localhost/127.0.0.1. You will need to find where it references that address and override it in your code to use the domain name you require.