I'm learning Go by coding net/http solution for my home users. They can access port, but I am looking for clever way to handle subdomain. So on Mikrotik I setup custom name menu.lan . When you open it you have dedicated Go app to show available options. When you select option on menu you go to dedicated app. My problem is how create more memorable names like news.menu.lan , streams.menu.lan , taxes.menu.lan etc.
My first shot is use Caddy for reverse proxy and handling names. The best will be make something which use specific folder for apps and detect folder name as subdomain automatically, but I have no idea how make this magic happened. Currently I server all apps as http to avoid anoying on all devices warning about dangerous site.…