i have a truenas scale server running plex /Jellyfin for media and ollama for some LLM stuff i am working with.
i want to publish some websites internally (so no external access to these website) so i can test them before deploying via github and cloudflare for external consumption.
What is the best method for doing this? is it a container / VM or an ‘app’
I use a VM (ubuntu server ) for that. Gives you the most control over needed packages ( i need nginx, flask and python to name a few). Works perfekt for my - inadept - tries at web app developpement.. Containers are still "experimental ".
For static documents I found the SWS static web server quite nice - lean and easy to deploy as a custom app or in one of the Docker management apps.
But your question reads a bit like you want to deploy web apps and not only static documents. In this case a VM as @Farout wrote is probably the best solution, because you are flexible with the runtime stack. Which you did not specify - PHP? Python? Ruby on Rails? …
for static websites i use nginx, i used also caddy in the past (to add more options of what already mentioned).
For host a web app i use, i have opted to build a docker image and run it as a stack via portainer; having only one, and not much used, for my use case seemed an overkill to run a dedicated VM… despite also IMHO the VM is still the better option ATM for most use cases