Https reverse-proxy and file uploading problem in localhost environnement


#1

Hello,
I’m using pound to have https on my localhost server, this work, I can access it from my lan.

The problem happens when I try to upload some avatars it shows me a broken image like this one :

wekan1

When I right click on it to go to the image’s URL, I have this error :

Error in method "/cfs/files/:value/:value/", Error: TypeError: Cannot read property 'avatars' of undefined
    at Object.httpGetHandler (packages/cfs_access-point.js:380:33)
    at Object.FS.HTTP.Handlers.Get (packages/cfs_access-point.js:462:27)
    at Object.accessPoint.get (packages/cfs_access-point.js:718:39)
    at packages/cfs_http-methods.js:604:33

It has something to do with the https:// as it works well on http://

Can someone explain me why ?

run-wekan.sh content :

cd /home/wekan/repos/wekan/.build/bundle
export MONGO_URL='mongodb://127.0.0.1:27017/admin'
export ROOT_URL='https://192.168.2.11'
export MAIL_URL='smtp://user:pass@mailserver.example.com:25/'
export PORT=80
node main.js

pound cfg :

User            "www-data"
Group           "www-data"
LogLevel        1
Alive           5
Control "/var/run/pound/poundctl.socket"

ListenHTTPS
        Address 0.0.0.0
        Port    443
        Cert "/etc/pound/ssl.pem"
        xHTTP           0
        Service
        BackEnd
            Address 127.0.0.1
            Port    80
        End
        End
End

Here is my config :

Wekan 0.37 (VB release https://wekan.xet7.org/release17.html)
Pound 2.6
Mongo 3.2.16
Ubutnu 14.04.5 LTS


#2

I replied here:

https://github.com/wekan/wekan/issues/1258