Closed arilwan closed 5 years ago
Hi @aarranz Can you spot what is causing this problem, please? Can't figure out what's the cause.
I tried this with Safari too, same problem.
Hi @arilwan,
Sorry for the delay, It seems a problem with the static files. Please, try following those steps:
Update nginx configuration to make it listen directly on port 53153.
server {
listen 80;
Should be changed to:
server {
listen 53153;
docker-compose.yml
by replacing nginx port mapping from this:
ports:
- 53153:80
to this:
ports:
- 53153:53153
Best Regards, Álvaro
Hi @aarranz
Just made these changes and restarts services, yet I'm receiving same message as before.
Hi @aarranz
I share here my nginx.conf
file:
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
server {
listen 53153;
#server_name example.org MY_SERVER_IP;
client_max_body_size 20M;
charset utf-8;
location /static {
alias /var/www/static;
}
location / {
proxy_pass http://wirecloud:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /iotagent {
proxy_pass http://fiware-iotagent:4041;
}
}
}
port mapping in docker-compose.yml
:
ports:
- "53153:53153"
I found the problems, you have changed folder name for static files on the wirecloud service (to static
), but you are using the old name (wirecloud-static
) on the nginx service. This make nginx not able to serve static files. On the other hand, as you are using a custom port, you have to indicate it by changing the following line:
proxy_set_header Host $host;
to
proxy_set_header Host $host:53153;
on the nginx.conf
file.
Hope this solve your problems.
Great! It works... closing.
This seems to still be a problem with the https://hub.docker.com/r/fiware/wirecloud image, if one wants to have wirecloud live on a port other than 8000 (which in my case is already taken).
Dear Commnity, I am running dockerized images of wirecloud+nginx from a remote server, trying to access Wirecloud from my browser. Wirecloud failed to load correctly, issuing the following message:
I can confirm my browsers (firefox and chrome) are up-to-date, and I can run wirecloud locally on my machine using same browsers, as in following image:![wirecloud 2](https://user-images.githubusercontent.com/42409395/54319825-ca45ac80-45e2-11e9-97e5-35fab8011d75.png)
Any idea why this problem happpens? Below is my
docker-compose
file.