dokkaner / teemii

A versatile, self-hosted manga reader and manager with extensible agent-based metadata retrieval
https://www.teemii.io
MIT License
289 stars 17 forks source link

Add an ENV var to be able to specify the backend host #67

Open o10s opened 7 months ago

o10s commented 7 months ago

Description

In my Homelab I deploy things with Kubernetes and I like to have things separated.

One part will contain the backend and another the frontend, all of the exposed via what is called a service. In Kubernetes an app will connect to another one via a service usually via a URL like http://service.namespace.svc.cluster.local

However here we can't add our own URL for the backend, something like BACKEND_HOST or something where I could add that URL, as of now the frontend will query for "teemii-backend" exclusively.

Sadly I don't know how to code with JS so I don't know how to modify your code to do so but should be doable.

Desired Behavior

Provide a BACKEND_HOST to be able to specify the backend url for the frontend app.

Additional Context

No response

Code of Conduct

o10s commented 7 months ago

@dokkaner Forgot to tag you here it is. Thanks !