Quantcast
Channel: Lufi activity
Viewing all articles
Browse latest Browse all 125

alexandre de GANAY opened issue #296: Websocket at Fiat Tux / Hat softwares / Lufi

$
0
0

Bonjour,

J'ai un problème de WebSocket à partir de mon système.Je souhaite que l'URL se fasse à partir du port 4455. La page web s'affiche bien mais impossible d'uploader un fichier et je n'arrive pas a comprendre d'où cela viens.

Voici le fichier de configuration lifi.conf

{    ####################    # Hypnotoad settings    ####################    # see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings    hypnotoad => {        # array of IP addresses and ports you want to listen to        # you can specify a unix socket too, like 'http+unix://%2Ftmp%2Flufi.sock'        # if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1        listen => ['http://127.0.0.1:3000'],        # if you use Lufi directly, let it commented        proxy  => 1,        # Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers        # to adjust this to your server        workers => 30,        clients => 5,    },    # Put a way to contact you here and uncomment it    # You can put some HTML in it    # MANDATORY    contact       => 'Contact page',

Voici ma configuration de Nginx

server {    listen 4455 ssl;    # Adapt this to your domain!    server_name partage.exemple.fr;    access_log /var/log/nginx/lufi.success.log;    error_log /var/log/nginx/lufi.error.log;    ssl_certificate     /etc/cert/certificate.crt;    ssl_certificate_key /etc/cert/certificate_decrypted.key;    location / {        # HTTPS only header, improves security        #add_header Strict-Transport-Security "max-age=15768000";        # Adapt this to your configuration (port, subdirectory (see below))        proxy_pass  http://127.0.0.1:3000;        # Really important! Lufi uses WebSocket, it won't work without this        proxy_set_header Upgrade $http_upgrade;        proxy_set_header Connection "upgrade";        proxy_http_version 1.1;        proxy_set_header Host $host;        proxy_set_header X-Real-IP $remote_addr;        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;        # If you want to log the remote port of the file senders, you'll need that        proxy_set_header X-Remote-Port $remote_port;        proxy_set_header X-Forwarded-Proto $scheme;        # We expect the downstream servers to redirect to the right hostname, so don't do any rewrites here.        proxy_redirect     off;    }}

Voici le message d'erreur que j'ai losque je vais sur la page webWebSocket connection to 'wss://partage.exemple.fr/upload' failed:

Pour info je suis sur une Debian 12

lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription:    Debian GNU/Linux 12 (bookworm)Release:        12Codename:       bookworm

et voici la version de Nginx

nginx -vnginx version: nginx/1.22.1

Pourrais je avoir une petite aide SVP?

Cordialement

Axel


Viewing all articles
Browse latest Browse all 125

Trending Articles