Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change port [EN Doc] #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/install/install-by-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ If you have Docker in your local machine, you may run VoceChat with the followin

```shell
docker run -d --restart=always \
-p 3009:3000 \
-p 3000:3000 \
--name vocechat-server \
privoce/vocechat-server:latest
```

Open this URL on your browser: `http://localhost:3009/`
Open this URL on your browser: `http://localhost:3000/`

## Run VoceChat on your server

Expand All @@ -35,7 +35,7 @@ Let's suppose your domain is `vocechat.yourdomain.com`:

```shell
docker run -d --restart=always \
-p 3009:3000 \
-p 3000:3000 \
--name vocechat-server \
-v ~/.vocechat-server/data:/home/vocechat-server/data \
privoce/vocechat-server:latest \
Expand All @@ -54,7 +54,7 @@ At Nginx configration file(usually at `/etc/nginx/conf.d`)creat new file--`v
server{
server_name vocechat.yourdomain.com;
location / {
proxy_pass http://127.0.0.1:3009; # this port number "3009" should be the same as the port of the vocechat docker image
proxy_pass http://127.0.0.1:3000; # this port number "3000" should be the same as the port of the vocechat docker image
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand All @@ -76,7 +76,7 @@ Don't forget to set up your DNS :)

#### Set up https

How it works:Let nginx listen to port 443, the https SSL certificate is set to nginx so that port 443 is with https, and the reverse proxy will direct request to `vocechat-server:3009`.
How it works:Let nginx listen to port 443, the https SSL certificate is set to nginx so that port 443 is with https, and the reverse proxy will direct request to `vocechat-server:3000`.

```
┌─────────┐ ┌─────────┐ ┌─────────┐
Expand Down Expand Up @@ -108,7 +108,7 @@ At this step, the `vocechat.yourdomain.com.conf` should be look like this:
server{
server_name vocechat.yourdomain.com;
location / {
proxy_pass http://127.0.0.1:3009; # this port number "3009" should be the same as the port of the vocechat docker image
proxy_pass http://127.0.0.1:3000; # this port number "3000" should be the same as the port of the vocechat docker image
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down Expand Up @@ -204,7 +204,7 @@ docker pull privoce/vocechat-server:latest

# Change the following lines to fit your own settings:)
docker run -d --restart=always \
-p 3009:3000 \
-p 3000:3000 \
--name vocechat-server \
-v ~/.vocechat-server/data:/home/vocechat-server/data \
privoce/vocechat-server:latest \
Expand Down