hm. It would be nice if we could support wss with this too. Then the charm could be taught to take advantage of it.
How about this?
full url -> unchanged wss://:port/path -> wss://[HOSTNAME]:port/path ws://:port/path -> ws://[HOSTNAME]:port/path
Maybe also
ws:///path -> ws://[HOSTNAME]:[CURRENT PORT]/path wss:///path -> wss://[HOSTNAME]:[CURRENT PORT]/path
shrug. That would be slightly convenient for the charm.
I don't want to bikeshed. If you have a better idea I'll want to approve it. :-)
hm. It would be nice if we could support wss with this too. Then the charm could be taught to take advantage of it.
How about this?
full url -> unchanged HOSTNAME] :port/path :port/path
wss://:port/path -> wss://[
ws://:port/path -> ws://[HOSTNAME]
Maybe also
ws:///path -> ws://[HOSTNAME] :[CURRENT PORT]/path HOSTNAME] :[CURRENT PORT]/path
wss:///path -> wss://[
shrug. That would be slightly convenient for the charm.
I don't want to bikeshed. If you have a better idea I'll want to approve it. :-)