tkuester / taky

A simple python TAK server
MIT License
184 stars 43 forks source link

Using taky with nginx #91

Closed jkimsis closed 9 months ago

jkimsis commented 10 months ago

Hello,

I've put taky on a Raspberry Pi 400 that's behind a router and already running a few webpages using nginx. I tried to set up nginx to put through the necessary ports for taky, but taky refuses to start afterwards because nginx is already listening to those ports. Has anyone used a similar setup? I have forwarded the ports to the RPI in the router, but that didn't seem to be enough.

Matthew-Beckett commented 10 months ago

Hi @jkimsis!

You can reconfigure the bind port for the CoT server in the taky.conf file, though I do not believe that the default port conflicts with NGINX and you thus I believe your issue is elsewhere in your configuration.

May I recommend switching to Docker and using nginx-proxy for automatic configuration as this would resolve a lot of your issues via automatic configuration.

Ultimately this is not an issue with taky and appears to a be a configuration issue in your specific deployment,

jkimsis commented 10 months ago

Hey, thanks for the reply!

The conflict with nginx was because I had though nginx controlls all traffic on the RPi, so I told it to listen to ports 8089/8443.

I think the problem is caused by me giving the wrong ip when starting taky. Should I give the internal of the router or RPi itself?

Matthew-Beckett commented 10 months ago

Hey, thanks for the reply!

The conflict with nginx was because I had though nginx controlls all traffic on the RPi, so I told it to listen to ports 8089/8443.

I think the problem is caused by me giving the wrong ip when starting taky. Should I give the internal of the router or RPi itself?

If you're referring to the IP in the configuration file, it should be the IP of your NGINX as it is used for certificate generation and connection package creation via takyctl.

tkuester commented 9 months ago

@Matthew-Beckett -- Thanks for helping out the users!

@jkimsis Just because this is a more advanced usage / config issue, I'd like to close the issue and keep this related to the development. Or, if you think there could be some documentation to support this better, I'd welcome assistance maintaining that!

Closing for now.