mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
fix dev docker and docs
This commit is contained in:
parent
9f02f7b3ca
commit
6ca039910a
2 changed files with 5 additions and 7 deletions
|
@ -5,13 +5,13 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_connect_timeout 300;
|
proxy_connect_timeout 300;
|
||||||
proxy_pass http://node:3000;
|
proxy_pass http://pairdrop:3000;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /ca.crt {
|
location /ca.crt {
|
||||||
alias /etc/ssl/certs/snapdropCA.crt;
|
alias /etc/ssl/certs/pairdropCA.crt;
|
||||||
}
|
}
|
||||||
|
|
||||||
# To allow POST on static pages
|
# To allow POST on static pages
|
||||||
|
@ -27,7 +27,7 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_connect_timeout 300;
|
proxy_connect_timeout 300;
|
||||||
proxy_pass http://node:3000;
|
proxy_pass http://pairdrop:3000;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
}
|
}
|
||||||
|
|
|
@ -669,15 +669,13 @@ git clone https://github.com/schlagmichdoch/PairDrop.git && cd PairDrop
|
||||||
git checkout dev
|
git checkout dev
|
||||||
```
|
```
|
||||||
```bash
|
```bash
|
||||||
docker compose -f docker-compose-dev.yml up -d
|
docker compose -f docker-compose-dev.yml up --no-deps --build
|
||||||
```
|
```
|
||||||
|
|
||||||
Now point your web browser to `http://localhost:8080`.
|
Now point your web browser to `http://localhost:8080`.
|
||||||
|
|
||||||
- To restart the containers, run `docker compose restart`.
|
|
||||||
- To stop the containers, run `docker compose stop`.
|
|
||||||
- To debug the Node.js server, run `docker logs pairdrop`.
|
- To debug the Node.js server, run `docker logs pairdrop`.
|
||||||
|
- After changes to the code you have to rerun the `docker compose` command
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue