Ubuntu 18.04LTS
Jekyll 4.0.0
[URL notes have added spaces in them]
I’ve got jekyll-admin installed and set up for Internet use with an nginx reverse proxy configuration, similar to https://jekyll.github.io/jekyll-admin/self-hosting
I’m using a cloned Github Jekyll repo, and have set the jekyll-admin root to the Jekyll repo’s “_site” directory, which mostly works.
Where it breaks down is when jekyll-admin rewrites all of the asset URLs to use “localhost : 4000” instead of “mydomain . com : 4040” [see nginx reverse proxy note, below]
This is a FILE rewrite, not a virtual rewrite, so, in fact, all of the relative asset links in my “_site” directory now have “http: // localhost : 4000” prepended to them!
i.e. my links are set up like “/images/image.png” and jekyll-admin rewrites them as “http: // localhost : 4000 /images/image.png” … which is no good.
Not only can I not deploy from “_site”, but in jekyll-admin, all of the “View” links go to localhost : 4000 instead of using my domain:port, so they are all broken.
How can I prevent jekyll-admin from modifying my relative asset links?
I just want them to remain as relative links.
Thanks in advance for any comments and tips.
[Note about nginx reverse proxy]
I already have Apache listening on port 80, so I chose port 4040 as my jekyll-admin port for use with nginx. Make sure you listen to something other than port 4000 in your reverse proxy config, or nginx will just loop until it runs out of workers.