pingvin-share icon indicating copy to clipboard operation
pingvin-share copied to clipboard

Env var to set app URL

Open m3nu opened this issue 2 years ago • 6 comments

🙋‍♂️ 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

m3nu avatar Sep 20 '23 12:09 m3nu

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?

stonith404 avatar Sep 21 '23 13:09 stonith404

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.

m3nu avatar Sep 21 '23 14:09 m3nu

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

m3nu avatar Oct 30 '23 16:10 m3nu

Oh yeah sorry, I don't know why I have closed this issue. I didn't implement the env var yet :/

stonith404 avatar Nov 03 '23 21:11 stonith404

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Dec 04 '23 00:12 github-actions[bot]

Thank you for removing the stale label, I confirm that it will be amazing to have this env var ;-)

matbgn avatar Dec 11 '23 12:12 matbgn