Env var to set app URL
🙋♂️ Question
Hi, this is a very well-made app and I found it via Jeremy from noted.lol. Currently looking into adding it on pikapods.com for 1-click deployment.
Currently I'm running into an issue with setting the app URL to use. I see an option for APP_URL in the database, but it's not an env var that's read in.
How would I best set the external app URL without this env var? Currently it defaults to http://localhost:3000. I know the URL can be changed via UI, but for most other apps, we can simply set it via env var.
Would you consider a pull request to update the APP_URL setting from an env var? Generally supporting all env vars from here would be great:
https://github.com/stonith404/pingvin-share/issues/22#issuecomment-1296183651
Yeah I think it makes more sense to store this in an env var instead of changing it in the UI. In my opinion server specific configuration should be done with env variables and app specific configurations in the web UI.
What do you think?
Totally agree of course. That was why I brought it up. 😀
From all the apps I've set up, most of them set the final domain via env var. Or at least offer this option if some kind of auto-detection doesn't work correctly.
Circling back to this, since I'd love to add this app without messing with the database during each edit: Did you end up using the APP_URL env var anywhere? I only see it in SQL. If it's available, I'd also add it in the README here:
https://github.com/stonith404/pingvin-share/tree/main#environment-variables
Oh yeah sorry, I don't know why I have closed this issue. I didn't implement the env var yet :/
This issue is stale because it has been open for 30 days with no activity.
Thank you for removing the stale label, I confirm that it will be amazing to have this env var ;-)