I’m trying to serve both documentations for offline use
- K8s Docs - GitHub - kubernetes/website: Kubernetes website and documentation repo:
- In Hugo container with
hugo server --environment development --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir --noBuildLock --debug
command
- In Hugo container with
- TrueNAS Docs - GitHub - truenas/documentation: TrueNAS Documentation Hub
- In Hugo container with
server --buildDrafts --buildFuture --bind 0.0.0.0
command
- In Hugo container with
Both of them are hosted in the container on another server with Docker Swarm,
and both are deployed according to the guildelines by the official documentation maintainers,
But the requests from my local PC to the container running on another server take very long
So when I’m trying to make a request to the Hugo Application:
Local PC (without Internet) → Server with Docker Swarm (With Internet)
It takes over 2 minutes to render the response
And again the server that hosts this documentation HAS the Internet, only the PC doesnt
And in the container logs, there’re no error messages - only:
DEBUG 2023/08/16 12:57:59 Render page Оркестрация контейнеров промышленного уровня to "/ru/index.html"
DEBUG 2023/08/16 12:57:59 Render page Оркестрация контейнеров промышленного уровня to "/ru/feed.xml"
DEBUG 2023/08/16 12:57:59 Render page Оркестрация контейнеров промышленного уровня to "/ru/_headers"
DEBUG 2023/08/16 12:57:59 Render page Produkcyjny system zarządzania kontenerami to "/pl/index.html"
DEBUG 2023/08/16 12:57:59 Render page Produkcyjny system zarządzania kontenerami to "/pl/feed.xml"
DEBUG 2023/08/16 12:57:59 Render page Produkcyjny system zarządzania kontenerami to "/pl/_headers"
DEBUG 2023/08/16 12:57:59 Render page Довершена система оркестрації контейнерів to "/uk/index.html"
DEBUG 2023/08/16 12:57:59 Render page Довершена система оркестрації контейнерів to "/uk/feed.xml"
DEBUG 2023/08/16 12:57:59 Render page Довершена система оркестрації контейнерів to "/uk/_headers"
DEBUG 2023/08/16 12:57:59 Render XML for "sitemapindex" to "sitemap.xml"
DEBUG 2023/08/16 12:57:59 Render Robots Txt to "robots.txt"
EDIT:
I noticed that the .css take that long to load
Does it need to be downloaded on its own for the webpage to work?
Or is there an option to download .css files on the server side?