Skip to content

Make snapweb paths configurable for ingress #109

@jkrenzer

Description

@jkrenzer

Hi!

Current State

Assume the following setup:

  • Snapweb is exposed under a sub-path by an ingress controller: https://example.com/snapcast
  • Snapcast server's JSON-RPC is exposed as https://example.com/snapcast/json-rpc by the same ingress-controller

Currently snapweb tries to call wss://example.com/json-rpc to establish a connection and there is no way to modify this behavior without recompiling for every setup.

Proposal

Make the paths for the assets and for the accessed endpoints configurable, e.g. using a config.json or config.js file which is loaded on startup and which can override the defaults.

Using a config.js would allow to generate the paths using variables available at runtime, maybe even headers provided by the reverse-proxy or ingress-controller like X-Ingress-Path.

Thanks!

Jörn

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