• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue Appwrite Websocket not working

itexpertnow

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.59 Update #2
I am running selfhosted appwrite behind nginx:
Bash:
$:/home/appwrite# docker port appwrite-traefik
80/tcp -> 0.0.0.0:32080
80/tcp -> [::]:32080
443/tcp -> 0.0.0.0:32443
443/tcp -> [::]:32443

Websocket working:
`wss://cms.itexpertnow.com:32443/v1/realtime?project=console&channels%5B%5D=project&channels%5B%5D=console`
Websocket not working:
`wss://cms.itexpertnow.com/v1/realtime?project=console&channels%5B%5D=project&channels%5B%5D=console`

Nginx config:
Bash:
location ~ ^/.* {
    proxy_pass http://0.0.0.0:32790;
    proxy_set_header Host              $host;
    proxy_set_header X-Real-IP         $remote_addr;
    proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Upgrade $http_upgrade;
    proxy_http_version 1.1;
}

location /v1/realtime {
    proxy_pass http://0.0.0.0:32443;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_read_timeout 600s;
    proxy_send_timeout 600s;
}


docker config:
Code:
  traefik:
    image: traefik:2.11
    container_name: appwrite-traefik
    <<: *x-logging
    command:
      - --providers.file.directory=/storage/config
      - --providers.file.watch=true
      - --providers.docker=true
      - --providers.docker.exposedByDefault=false
      - --providers.docker.constraints=Label(`traefik.constraint-label-stack`,`appwrite`)
      - --entrypoints.appwrite_web.address=:80
      - --entrypoints.appwrite_websecure.address=:443
    restart: unless-stopped
    ports:
      - 32080:80
      - 32443:443
 
Back
Top