Skip to content

Jekyll url is not applied to the View button #610

Open
@melroy89

Description

@melroy89

Description:

Pressing the View button in the admin panel the URL is pointing to http://localhost:4000. But I'm behind a reverse proxy called Nginx.

Tell us a bit about yourself:

  • Version of JekyllAdmin I'm using: 0.10.2
  • Version of Jekyll I'm using: 4.1.1
  • Version of NodeJS I'm using: v14.15.0
  • Operating System <e.g. OS X, Windows>: Linux!
  • Browser <e.g, Safari, Chrome>: Firefox!

Steps to reproduce:

  1. Setup Jekyll as normal
  2. Configure _config.yml file, and set url key to: url: "https://yourdomain.com" (baseurl is just "/")
  3. Configure Nginx to use yourdomain.com as server_name in Nginx with a location / section containing at least: proxy_pass http://localhost:4000;
  4. Go to admin panel: https://yourdomain.com/admin
  5. Press the View button
  6. Links goes to http://localhost:4000/jekyll/update/2020/11/19/welcome-to-jekyll.html, which will NOT work.

I expected the following:

I expect the View links to take the url settings into account. The link example above, should go to:

https://yourdomain.nl/jekyll/update/2020/11/19/welcome-to-jekyll.html

But got the following, instead:

http://localhost:4000/jekyll/update/2020/11/19/welcome-to-jekyll.html

I think it shouldn't be that hard to get this solved, I hope 👍🏽 ?

Regards,
Melroy van den Berg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions