owntracks / quicksetup

A (mostly) automated installer for OwnTracks Recorder, Frontend with MQTT and Let's Encrypt
https://owntracks.org/booklet/guide/quicksetup/
9 stars 3 forks source link

Installing behind nginx proxy #49

Open dapelzaa opened 2 days ago

dapelzaa commented 2 days ago

Hello.

I tried to install owntracks behind an existing nginx reverse proxy. TASK lego: enroll at letsencrypt failed. What can i do to fix this error?

greets

jpmens commented 2 days ago

Quicksetup expects to be the sole inhabitant of a machine, so I'm afraid we have no clever solution for that.

Alternatively you could try to set up the individual bits and pieces (Recorder, Frontend, etc.), but that's a non-trivial task.

jpmens commented 2 days ago

Rereading your question: if you do not specify an email address in configuration.yaml then we don't perform LE enrollment. That might be your solution.

dapelzaa commented 2 days ago

Installation successful! On which port is owntracks?

jpmens commented 2 days ago

On which port is owntracks?

if you mean the HTTP portion, that'd be 80 (or 443 in the case of configured Let's Encrypt).

dapelzaa commented 2 days ago

Okay. Server is running. But i cant connect from app to server. MessageProcessorEndpointMqtt: Failed to reconnect to MQTT broker

jpmens commented 2 days ago

The installed Mosquitto broker is listening on port 8883 with Let's Encrypt, and 1883 without.

I did say:

Quicksetup expects to be the sole inhabitant of a machine

;-)

dapelzaa commented 2 days ago

my nginx reverse Proxy is available on port 80 and 443. and forwards to owntracks vps. i saw in own tracks config: port 8883 is in use. that could not work

jpmens commented 2 days ago

MQTT doesn't pass via an HTTP reverse proxy; it's an incompatible protocol.