Trying to self host on docker. Don't understand what to put in public URLs in env file #684
Replies: 6 comments
-
URLs don't have to be domains, they can be IP addresses. These are required for CORS to work correctly. Let's say that your server has the IP
You set the PUBLIC_URI to be the one you (user/browser) use to connect to the frontend You set the API_URI to be the one your server uses to connect to the agent You set the PUBLIC_API_URI to be the one you (user/browser) use to connect to the agent |
Beta Was this translation helpful? Give feedback.
-
Thanks! Sorry I'm not a dev, just a home server tinkerer so not an expert at this stuff. That seemed to help, in that after I entered all local IPs it moved on to a new error though:
|
Beta Was this translation helpful? Give feedback.
-
Sorry for not replying, been very busy with another project. Can you explain me your setup in a bit more detail, are you hosting both the frontend and backend on one server, and if so, how? docker-compose? If so, please send it here (with secrets removed) |
Beta Was this translation helpful? Give feedback.
-
No worries. Thanks for helping me out. I'm hosting via Docker on Unraid. Using the community app store version of the frontend and the agent, which pulls from here. I somewhat know what I'm doing Docker-wise since I'm successfully hosting a suite of other services like Plex and the *arr family, so I'm not a complete noob I hope. |
Beta Was this translation helpful? Give feedback.
-
Huh, wow, didn't know someone made unraid apps for our project, that's very cool :D I've never used unraid, can you give me any hints as to where can I find the source for this "app" so that I can make sure the docker is setup correctly? Env vars look good, can you at least access |
Beta Was this translation helpful? Give feedback.
-
Thanks! Here's what the unraid app page looks like: The maintainer's app template is here: As far as the health pages, |
Beta Was this translation helpful? Give feedback.
-
I keep getting the error
Failed to create API URL: TypeError: Invalid URL
no matter what I try putting in the .env file variables for PUBLIC_URI, API_URI, PUBLIC_API_URI.Note I don't have this on any domain yet, just running locally on my home server, so using IP addresses not URLs. Are URLs required?
Beta Was this translation helpful? Give feedback.
All reactions