I have set up the backend service, edge and ui on my embedded computer. For backend and edge I have followed tutorials on your website. However, when I try to access backend using edge(localhost:8080) from the device, it is not possible. I can do it from another computer though(using 192.168.44.58:8080)
Regarding UI I used ng build -c "openems,openems-edge-dev"
to generate the artifacts which I copied to my embedded computer to /var/www/openemsui. Then I used nginx with following config:
server {
listen 4200;
listen [::]:4200;
server_name openems.example.com;
# Authentication with htpasswd (username and password) if needed
#auth_basic "Administrator Bereich";
#auth_basic_user_file /etc/nginx/.htpasswd;
# OpenEMS Web-Interface
location / {
root /var/www/openemsui;
index index.html index.htm;
error_page 404 /index.html;
}
# Proxy for OpenEMS Websocket
location /websocket {
proxy_pass http://127.0.0.1:8085;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Within my embedded computer I’m able to access only UI using localhost:4200 or 127.0.0.1:4200. However, it is not accesisble from my computer when I try to connect using the embedded computer ip adress(192.168.44.58:4200) it does not work.
Is it expected behaviour that backend is only available from outside and UI only from the inside?