2022-03-02 12:37:29 +01:00
|
|
|
# To test the reverse proxy setup, run the dev server using:
|
|
|
|
|
#
|
2025-05-02 15:19:31 +02:00
|
|
|
# PUBLIC_URL=/joinmarket npm run dev
|
2022-03-02 12:37:29 +01:00
|
|
|
#
|
|
|
|
|
# And visit http://localhost:8000/joinmarket/extrapath/
|
|
|
|
|
# Note: Keep the trailing slash!
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
|
|
location /joinmarket/extrapath/jmws {
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_set_header Authorization "";
|
|
|
|
|
|
|
|
|
|
# allow 10m without socket activity (default is 60 sec)
|
|
|
|
|
proxy_read_timeout 600s;
|
|
|
|
|
proxy_send_timeout 600s;
|
|
|
|
|
|
|
|
|
|
proxy_pass http://host.docker.internal:3000/joinmarket/jmws;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /joinmarket/extrapath {
|
|
|
|
|
proxy_pass http://host.docker.internal:3000/joinmarket;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /joinmarket {
|
|
|
|
|
proxy_pass http://host.docker.internal:3000/joinmarket;
|
|
|
|
|
}
|
2025-05-02 15:19:31 +02:00
|
|
|
|
|
|
|
|
location = /health {
|
|
|
|
|
default_type application/json;
|
|
|
|
|
return 200 '{ "status": "UP" }';
|
|
|
|
|
}
|
2022-03-02 12:37:29 +01:00
|
|
|
}
|