hey there, i do really need your help setting up my nginx proxy for my OH,
The issue: i want to get a access control to my sitemaps, i setup a user and password configuration which works, i have to login and then i get the OH page served. but i want to login and depending on the logged in user, i want to tell nginx which location to serve, e.g. http://localhost:8080/basicui/app?sitemap=MyOpenSitemap … each sitemap has different functionalities where users can do more … or less thinks.
i searched really a lot but i didnt even found a solution to set the location which nginx offers when requesting the server, e.g. i tried to set the proxy_pass not to http://localhost:8080/ which is the “main view” of the OH system, i want to change it to serve to a sitemap… but i didnt get it working. there are errors, first the error saying “URI to long” so i set the “long_location_header_buffer” up but still getting an other error after that, wich says “bad request” …
I do really need help to get nginx set up for the challenge… is there anybody who has set up his nginx proxy with same functionalities i am looking for? it would be very helpful to get tips, i think my problem is on nginx side. i found a thread: https://community.openhab.org/t/hiding-a-sitemap-from-non-system-admin-users-oh-1-x/20434/7 but it does not really help for me but the guys there seems to have a similar issue.
thanks for your help,