Thanks to everyone who contributed to this topic, I learned some very useful tricks
I’m trying to implement the full functionality of ask-discourse on Nginx proxy (self-hosted), and I have made some progress.
The URLs can be shortened (without redirect), and the default location on the subdomain points to the AI-bot home screen.
The issue I’m trying to solve is related to CSS files. I tried using the sub_filter
module in Nginx to load them from the original subdomain, but it didn’t work.
I plan to work on this next week, and then I can share the final template for those who are interested.