jam/docker/regtest/dockerfile-deps/nginx/default.conf.template
d11n c022c205bb
feat: allow for deployment in subdirectory (#129)
* 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>
2022-03-02 12:37:29 +01:00

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;
}
}