You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wirecloud 1.3 simple returns 403 on all WireCloud's proxy requests #53
do you have the files to reproduce this?
it should not be necessary to use FORCE_DOMAIN and FORCE_PORT if you are using nginx as proxy, but that depends on how you deployed WireCloud.
FORCE_DOMAIN and FORCE_PORT is not required because we are using FORWARDED_ALLOW_IPS=* so nginx should provide those details to WireCloud and them should be accepted.
On the other hand, nginx is not correctly configured so port is not transmitted. Please, change the following line in the nginx.conf file:
proxy_set_header Host $host;
to
proxy_set_header Host $host:$server_port;
I will change the example nginx.conf files if you confirm this fix the problem.
Activity
aarranz commentedon Feb 20, 2020
do you have the files to reproduce this?
it should not be necessary to use
FORCE_DOMAINandFORCE_PORTif you are using nginx as proxy, but that depends on how you deployed WireCloud.jenisov commentedon Feb 20, 2020
Apparently FORCE_PORT is necessary because all widgets' iframes were not accessible because Wirecloud used default (80) port for all of them.
I based on docker-compose-simple.yml with some modifications (attaching)
wirecloud.zip
aarranz commentedon Feb 24, 2020
Ok, I've found the problem.
FORCE_DOMAINandFORCE_PORTis not required because we are usingFORWARDED_ALLOW_IPS=*so nginx should provide those details to WireCloud and them should be accepted.On the other hand, nginx is not correctly configured so port is not transmitted. Please, change the following line in the
nginx.conffile:to
I will change the example
nginx.conffiles if you confirm this fix the problem.jenisov commentedon Feb 25, 2020
I can confirm this nginx.conf solves 403 error.
But now WireCloud proxy returns 502 (Bad Gateway):
And NGSI browser displays:
non-proxy URL works well though:
jenisov commentedon Feb 25, 2020
Found the problem: 502 it is my server DNS issue.