owntracks / quicksetup

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

Front end URL could be improved #42

Closed mssever closed 4 months ago

mssever commented 4 months ago

Steps to reproduce

  1. Configure and run a new quicksetup installation with the hostname owntracks.example.com
  2. Browse to https://owntracks.example.com.
  3. Observe that there's nothing there but a default nginx page. Further observe that in order to access the expected content, you have to browse to https://owntracks.example.com/owntracks.

Preferred behavior

Since quicksetup assumes (and reasonably so) that it controls the server, then either:

  1. The default URL should be https://owntracks.example.com; or
  2. Browsing to / should redirect to /owntracks.

I would submit a pull request, but I don't know enough about ansible to even find where this is configured.

jpmens commented 4 months ago

I agree.

If you feel like providing a PR (much appreciated), the nginx configuration for this is in https://github.com/owntracks/quicksetup/tree/main/files/nginx/ with the file you'll probably want to modify in owntracks.j2. This is a Jinja2 template which is templated out by Ansible.

The templated stuff is between {{ and }} and {% and %} respectively; I don't assume you'll have to modify things there.