-
-
Notifications
You must be signed in to change notification settings - Fork 14
Start it behind proxy #236
Copy link
Copy link
Open
Description
I tried to run it behind a nginx proxy on one of my vm. It runs as a service with this script
[Unit]
Description=PineSAM Server for Pinecil Soldering Iron
After=network.target bluetooth.target
Requires=network.target bluetooth.target
[Service]
Type=simple
ExecStart=/var/www/PineSAM/PineSAM
[Install]
WantedBy=multi-user.target
I reach it direct with as http://123.456.789.012:8080. No problem all working as espected.
The first time after nginx configuration as proxy it also works. Later I tried it again and no way without any clue it doesn't work again.
Here my proxy-config
server {
listen 443 ssl;
server_name sub.domain.com;
ssl_certificate /etc/xyz/fullchain.cer;
ssl_certificate_key /etc/xyz/xyz.key;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";`
}
}
He show the PineSAM screen and in the top area a rotating circle, but without themperature or other values.
When I make
systemctl status PineSAM.service
This is the result:
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.186::INFO::Sending response ws_server.py:156
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.187::INFO::Connection closed ws_server.py:174
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.189::INFO::connection closed server.py:264
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.323::INFO::Sending response ws_server.py:156
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.324::INFO::Connection closed ws_server.py:174
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.325::INFO::connection closed server.py:264
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.454::INFO::Sending response ws_server.py:156
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.456::INFO::Got message: ws_server.py:151
Feb 02 21:53:27 PineSAM[1434]: {"command":"GET_INFO"}
Feb 02 21:53:27 PineSAM[1434]: INFO 21:53:27.700::INFO::Sending response ws_server.py:156
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels