-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit page link not working behind reverse proxy #310
Comments
Yes, our test suite is currently lacking in how to test for all possible variants. In the future, we'll likely move to more isolated functions for URI calculation, auth permissions, etc. |
Ok, your suggestion tested out fine in my quick checks. And really, we should probably be using Here are the values I used in config.js:
Another important thing to note is Caddy is removing the path prefix, before proxying. For those that find this, here is the Nginx config used in testing for reference, because removing the path is complicated.
|
@djhworld Thanks again for reporting. I've moved this to the Roadmap so we can verify it. |
I'm running Raneto behind a reverse proxy.
This mostly works fine in terms of rendering notes properly, except when you open a note (e.g.
data.md
), and select Actions -> Edit you get directed tohttps://mydomain/data/edit
instead ofhttps://mydomain/notes/data/edit
because it seems to ignore thebase_url
property I have configuredI've had a look at the template for the Edit link and it relies on this
current_url
property (https://github.com/gilbitron/Raneto/blob/master/themes/default/templates/page.html#L59) in https://github.com/gilbitron/Raneto/blob/master/app/routes/wildcard.route.js#L105If I update this to
It fixes the problem, but I'm not sure if that's the right way to go about it seeing as people might put FQDNs in the
base_url
Setup I'm running
Relevant caddy section:
raneto config.js
The text was updated successfully, but these errors were encountered: