Blynk server + reverse proxy

Hello,
i have my own blynk server running in docker using the compilation of maxbanton / blynk-server: latest.
I need to log in via nginx reverse proxy to my server.
My ngnix configuration:

server {
  listen 443;
  listen [::]: 442;

  server_name blynk.nahorniak.cz;

  location / {
      proxy_pass https://192.168.1.10:9443/;
  }
}
"
Setting up blynk server:
"
initial.energy = 0
allow.reading.widget.without.active.app = true
user.message.quota.limit = 100
logs.folder = / data / logs
user.dashboard.max.limit = 3
lcd.strings.pool.size = 6
server.ssl.key =
webhooks.response.size.limit = 96
hardware.mqtt.port = 8441
table.rows.pool.size = 100
terminal.strings.pool.size = 25
admin.email=admin@nahorniak.cz
admin.rootPath = / index.html
user.widget.max.size.limit = 20
listen.address =
mail.properties = / config / mail.properties
blocking.processor.thread.pool.limit = 6
stats.print.worker.period = 60000
enable.db = false
force.port.80.for.csv = false
enable.raw.db.data.store = false
restore.host = blynk.nahorniak.cz
contact.email=admin@nahorniak.cz
server.host = blynk.nahorniak.cz
csv.export.data.points.max = 43200
restore = false
user.profile.max.size = 256
allow.store.ip = true
allowed.administrator.ips = 0.0.0.0 / 0, :: / 0
net.interface = eth
webhooks.frequency.user.quota.limit = 1000
http.port = 8080
web.request.max.size = 524288
user.devices.limit = 50
async.logger.ring.buffer.size = 2048
user.tags.limit = 100
server.ssl.key.pass =
admin.pass = admin
hard.socket.idle.timeout = 10
product.name = Gas | nahorniak
data.folder = / data
map.strings.pool.size = 25
profile.save.worker.period = 60000
https.port = 9442
log.level = info
server.ssl.cert =
force.port.80.for.redirect = false
notifications.queue.limit = 2000
notifications.frequency.user.quota.limit = 10

Currently, web administration works, but login through the application does not.

Unfortunately, I did not find any solution here in the forum.

I’m really a beginner, please use the basic instructions / advice.
Thanks…

I really don’t know what to do. Can someone please help me?

Since 2020 the solution has not changed - If you still run local server, I posted my config here: Blynk Network Port Forward Config | by Derek Colley | Jul, 2021 | Medium

1 Like

I love how you managed to figure it out yourself.

To get the app working from inside the local network and outside when I’m traveling, we need to configure DNS and port forwarding as follows. Note 1: the admin pages are accessed over HTTPS on port 443the app uses a proprietary protocol (not HTTP) also on port 443…! Note 2 - please decide for yourself whether exposing this service to the internet is a good thing. Perhaps you prefer a VPN solution. Then your device can simply access internal services when connected, and you could avoid the proxy pricing issue.

Heloo…I tried and tested a lot of thing…finaly I find working solution.
You must make a stream like this in nginx
stream {
upstream blynkserver {
server 192.168.0.111:9443;
}
server {
listen 9443;
proxy_pass blynkserver;
}
}

on router you must open port 9443 to blynk server ip (in my case 192.168.0.111:9443)

On blynk aplication you can put external IP or duckdns link if you have dynamic IP. It works on local wili and also on mobile network without changing adress on blynk apk.