echo-server icon indicating copy to clipboard operation
echo-server copied to clipboard

Support to config app root

Open omegazeng opened this issue 2 years ago • 2 comments

eg:

# start
PORT=8080 APP_ROOT=/app echo-server

# access
curl localhost:8080/app/

Thx.

omegazeng avatar Feb 21 '23 12:02 omegazeng

Hi, thanks for the request. Can you explain why this is necessary? The server will respond to requests for any path.

jmalloc avatar Oct 30 '23 20:10 jmalloc

Hi, thanks for the request. Can you explain why this is necessary? The server will respond to requests for any path.

/.ws & /.sse must be in the root path. I want to combine the echo server with other servers.

Like this: /app -> echo-server /serverA -> server a /serverB -> server b

omegazeng avatar Jan 05 '24 06:01 omegazeng

Is this resolved by #32 ?

jmalloc avatar Jun 18 '24 21:06 jmalloc

Or #35?

jmalloc avatar Jun 30 '24 22:06 jmalloc

As of v0.3.7, the .ws and .sse endpoints are served from any "directory", which I believe solves this issue.

jmalloc avatar Jul 01 '24 08:07 jmalloc

As of v0.3.7, the .ws and .sse endpoints are served from any "directory", which I believe solves this issue.

sry, it's too late to reply. it works! thank you.

omegazeng avatar Jul 27 '24 03:07 omegazeng