{"action":"closed","issue":{"url":"https://api.github.com/repos/edhelas/movim/issues/24","labels_url":"https://api.github.com/repos/edhelas/movim/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/edhelas/movim/issues/24/comments","events_url":"https://api.github.com/repos/edhelas/movim/issues/24/events","html_url":"https://github.com/edhelas/movim/issues/24","id":98957118,"number":24,"title":"Integration in Yunohost [nginx + websockets issue]","user":{"login":"src386","id":7580396,"avatar_url":"https://avatars.githubusercontent.com/u/7580396?v=3","gravatar_id":"","url":"https://api.github.com/users/src386","html_url":"https://github.com/src386","followers_url":"https://api.github.com/users/src386/followers","following_url":"https://api.github.com/users/src386/following{/other_user}","gists_url":"https://api.github.com/users/src386/gists{/gist_id}","starred_url":"https://api.github.com/users/src386/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src386/subscriptions","organizations_url":"https://api.github.com/users/src386/orgs","repos_url":"https://api.github.com/users/src386/repos","events_url":"https://api.github.com/users/src386/events{/privacy}","received_events_url":"https://api.github.com/users/src386/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-04T12:31:58Z","updated_at":"2015-08-19T12:43:58Z","closed_at":"2015-08-19T12:43:58Z","body":"Hi,\r\nI'm working on packaging Movim for Yunohost.\r\nIf I dedicate a Nginx vhost to movim, it works : \r\n\r\n    server {\r\n        listen 80 default_server;\r\n        root /var/www/;\r\n        index index.php index.xhtml index.html;\r\n        server_name dev.wks-xavier.local;\r\n\r\n        location ~ \\.php$ {\r\n        include snippets/fastcgi-php.conf;\r\n        fastcgi_pass unix:/var/run/php5-fpm.sock;\r\n        include /etc/nginx/fastcgi_params;\r\n        fastcgi_param HTTP_MOD_REWRITE 1;\r\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        }\r\n\r\n    location /ws/ {\r\n        proxy_pass http://localhost:8080;\r\n        proxy_http_version 1.1;\r\n        proxy_set_header Upgrade $http_upgrade;\r\n        proxy_set_header Connection \"Upgrade\";\r\n        proxy_set_header Host $host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_set_header X-Forwarded-Proto https;\r\n        proxy_read_timeout 86400s;\r\n        proxy_send_timeout 86400s;\r\n        proxy_redirect off;\r\n        }\r\n    }\r\n\r\nHowever in Yunohost we deal with 1 vhost and many apps. So Movim have to work with URL like that : myserver.com/movim. So here is my vhost : \r\n\r\n    server {\r\n        listen 80 default_server;\r\n        root /var/www/;\r\n        index index.php index.xhtml index.html;\r\n        server_name dev.wks-xavier.local;\r\n\r\n    location /movim {\r\n        index index.php;\r\n\r\n        location ~ \\.php$ {\r\n        include snippets/fastcgi-php.conf;\r\n        fastcgi_pass unix:/var/run/php5-fpm.sock;\r\n        include /etc/nginx/fastcgi_params;\r\n        fastcgi_param HTTP_MOD_REWRITE 1;\r\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        }\r\n\r\n    location ~ \\/ws/ {\r\n        proxy_pass http://localhost:8080;\r\n        proxy_http_version 1.1;\r\n        proxy_set_header Upgrade $http_upgrade;\r\n        proxy_set_header Connection \"Upgrade\";\r\n        proxy_set_header Host $host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_set_header X-Forwarded-Proto https;\r\n        proxy_read_timeout 86400s;\r\n        proxy_send_timeout 86400s;\r\n        proxy_redirect off;\r\n        }\r\n    }\r\n    }\r\n\r\nHowever this doesn't work.\r\nI can access to Movim login screen, so I assume php is working. \r\nBut I have this message : \r\n\r\n    Movim cannot talk with the server, please try again later (Websocket connection error)\r\n\r\nI've been stuck for 2 days with this problem..."}}