Menu

Development VM with Caddy or alternative - how easy handle subdomains in LAN with http/https

Reddit r/golang·u/pepiks·6 months ago
#Cq6YNMwf
#menu#solution#apps#caddy#article
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.