
would appreciate a few bucks so i can get something because im hungry and brain's crashing >_<

would appreciate a few bucks so i can get something because im hungry and brain's crashing >_<

now im hungy though...

awawawa... i think i can finally maybe put this hyperfixation down, now that I have things working to the best of my ability and in my control.

i am still going to be hyperfixating on this though. currently seeing if I can adjust the file to still work by pulling the latest from the git repo.

literally all you need to make this docker container build and work is:
docker run constantly.passing through anything but Caddy stuff isn't needed, and realistically I could build the Caddyfile in at build time so you only need to provide a persistent data folder for Caddy but idk, maybe you'd want more control over the Caddyfile for some reason or other.
sooo yipppee, my main goal is complete.

it would help if i could fucking spell lmao. tried mapping data to /srv/instace instead of /srv/instance.

got my fancy new nicolium-fe dockerfile + build process up and running on here. works swimmingly, easy to map custom stuff through via compose, and shit just Works (TM) which is pretty good.
10/10 do recommend this. I'll prob alter the dockerfile to just touch nicolium.json rather than requiring you copying it over during the build step, or just mv the example json to be the "default" one (since it's basically the default anyways).

not gonna lie part of why i've been up until 4 FUCKING AM is because i've been hyperfixated on figuring this shit out. and thankfully i finally did the step I should have done ages ago and checked the environment variables bit by bit to figure out if setting any of them caused a problem.

(would still be nice if the theme could apply to to the backend_url=true state but whatever. i'll figure it out)

at least nice to know that it's specifically that. kinda annoying that it's the case, but whatever. not the end of the world, just a lil' annoying.

ok I've identified the exact problem. When building with env variable BACKEND_URL, it seems to default to the standard nicolium.json file... UNTIL you log in. Once you log-in, the custom defined nicolium.json file takes over. That's... weird to me, I imagine that's either a bug or just a quirk of how it works currently. Going to draft up a proper issue to send in when it's not 4am (oops).
at least I've established consistent behavior now, though. it's also ONLY with that env variable. Using anything else seems to work as expected, it's just when setting BACKEND_URL to anything. So... I do have an actually reproducible build, it's just that there's one specific quirk that makes it a bit more annoying to use as a standalone FE for a specific arbitrary instance, like my own rn.

is it something with using build flags in the build environment?... im so confused.

cause everything is mapped through AS IT SHOULD based on my understanding of things, like. it surely has to be something with how stuff is handled in the caddy-alpine image, because i can run it just fine directly from my fedora laptop using the build-in caddy package and the basic pnpm build.
like sure i can just build this manually and call it a day on my container, but i really want to try and have this be fully reproducible with a custom nicolium.json file, something my current instance lacks.

ok it's just. something up with docker, or at least the caddy docker image. running this shit on fedora is fine, but trying to move stuff into the caddy-alpine image breaks.
...do i dare build everything from absolute scratch and host it in a debian trixie container. what the fuck else can explain this. is there a non-alpine based caddy image that isn't the windows server versions?

yes its 3am no i don't care right now because my brain is occupied.

ok we're finally in the proper WORKDIR now. just doing things step by step at this point, making sure everything is in its place before I add the next couple of lines (really just uncommenting the next couple of lines, i know what needs to be done its just making sure paths are right)

OK I MADE PROGRESS ON MY POKING AROUND WITH NICOLIUM. Pulling the zip provided and working with that, at least locally, without Docker, seems to pass through the appropriate nicolium.json file, which I can tell because I see the little copyright footer changed from "meow :3" to "beep boop", and the colors are slightly different.
Now to work with it thisaway now, see if it makes progress. So long that I can successfully ADD <zip link> in the Dockerfile and it ends up in the directory I want, i should be able to produce a competent build image to then copy files over to a runtime caddy image.

:senFlat: weh. i know i shouldn't but i kinda wanna get apartment coffee... maybe that'll knock me out.

ok yeah. i'm just thoroughly confused at this point. i can definitely build it with environment variables just fine (have been able to for a while) but i cannot get nicolium.json to map and be read correctly, even though it's been exported by a different nicolium instance than the one I'm on right now.
i'll deal with this another time. too annoyed right now to think bout this more. at least i'm able to regularly reproduce the image now? though it's still pulling the latest commit to make it work which again, isn't super ideal in general.
blegh. eepy. i wanna nap but i mustn't.

because i am Incapable of leaving things alone i am continuing to poke into building a nicolium docker container automagically, so all you need to do is map in files...
and i'm still running into the issue where a valid-seeming json file to configure it just. doesn't seem to apply properly? im tempted to copy it into the build step and then copy all of that into runtime.