Skip to content

Allow configurable backend address #80

@PylotLight

Description

@PylotLight

What

Somewhat of a bug/feature, as currently localhost address is hardcoded into frontend, despite the many possible addressable paths one would use to access the backend.
E.g a k8s dns name like knowledge-table-backend.knowledge-table.svc.cluster.local:8000/api
This should be configurable by env var most likely settable during runtime.

Why

Discuss the impact of this feature on current users, system performance, and any other areas of the application. Indicate if this feature would be beneficial to other users.

Allows for setting up and hosting in many different environments.

Implementation guidance

Suggest how this feature might be implemented. Include details like API changes, database schema modifications, architectural considerations, and any other relevant implementation details.

  • Add env var to frontend BACKEND_HOST_PATH
  • If not set, use localhost as default
  • If set, use that path in all api path requests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions