mirror of
https://github.com/joinmarket-webui/jam.git
synced 2026-08-17 13:07:34 +02:00
* feat: allow for deployment in subdirectory * Fix sprite path * Basepath fix * Update proxy and websocket paths * Add nginx for testing deployment in subdirectory * Update docker/regtest/docker-compose.yml Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com> * nginx: Move file and add websocket connection Co-authored-by: Thebora Kompanioni <theborakompanioni@users.noreply.github.com>
32 lines
843 B
Text
32 lines
843 B
Text
# To test the reverse proxy setup, run the dev server using:
|
|
#
|
|
# PUBLIC_URL=/joinmarket npm start
|
|
#
|
|
# 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;
|
|
}
|
|
}
|