sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.49k stars 105 forks source link

add webui-path option and mux handler #428

Closed tbmale closed 6 months ago

tbmale commented 6 months ago

I'm in no way a golang programmer but this is schratcing my itch and I'm using it for my local instance, so I tought...

sentriz commented 6 months ago

what's the usecase for this?

tbmale commented 6 months ago

what's the usecase for this?

There are several subsonic web frontends out there (jamstash,airsonic-refix,subplayer, etc.)

By doing -webui-path I can self-host the frontend from gonic.

sentriz commented 6 months ago

i would recommended having your reverse proxy with static file server host those. gonic can also read the GONIC_PROXY_PATH option to be aware of any path prefixes

hosting from gonic may also make it responsible for any security implications there. such as hosting two sites on the same domain, one of which isnt sanitising user input