Open caywin25 opened 7 months ago
I just did new tests. If I log in directly to my shaarli site and I want to share a link with the "Shaare link" window I get the error: Wrong token.
If I am not logged in on my shaarli site but I log in from the small window ¨Shaare link¨ I can share any links.
Finally if I log into the small "shaare link" window and on my shaarli site one of the will return the Wrong Token error and will be unusable
Hi,
It seems to me that it is because of my reverse proxy.
Please post
Hello
Thanks for your reply. I'm using httpd ans relayd on openbsd and I installed shaarli with zip I know is not standard :)
httpd.conf
server "perso.shaarli.org" {
listen on 127.0.0.1 port 8080
log style forwarded
log {
access "access.log"
error "error.log"
}
location "/tpl/*" {
root "/htdocs/shaarli"
}
location "*.php" {
root "/htdocs/shaarli"
fastcgi socket "/run/php-fpm.sock"
}
location "*index.php*" {
root "/htdocs/shaarli"
fastcgi socket "/run/php-fpm.sock"
}
location match "/(.*)" {
request rewrite "/index.php/%1"
}
location "/*" {
root "/htdocs/shaarli"
}
gzip-static
}
server "perso.shaarli.org" {
listen on 127.0.0.1 port 8081
block return 301 "https://$HTTP_HOST$REQUEST_URI"
}
relayd.conf
match request header set "X-Forwarded-For" value "$REMOTE_ADDR"
match request header set "X-Real-IP" value "$REMOTE_ADDR"
Above are the headers that I pass to VHOST The rest of the conf is just standard for the 443
Thank for your help
Does accessing /admin/token
on your instance return a token?
Are there errors in the browser console or webserver logs?
Hi @caywin25 did you get a chance to check /admin/token
on your instance, as requested above?
Hello @nodiscc Sorry for delay Yes if I go to /admin/token I have my token
Thanks Regards
Hello
I find myself facing a problem. I can't share an article with the "Shaare link" button
When I open the window and enter my credentials, I get the message Wrong token and I cannot share the link.
It seems to me that it is because of my reverse proxy. My configuration is as follows:
Log on my webserver with Wrong token message :
I think that's where the problem comes from. Could you please help me ?