Skip to content

Share included content not working #9096

@0xRoM

Description

@0xRoM

Description

I access trilium from admin.example.com. On my main page I have:

~shareCss(inheritable)=csspage ~shareHtml(inheritable)=htmlinjected

I have a reverse proxy to /share/ and added an exception for /api/

    RewriteCond %{REQUEST_URI} ^/api/ [NC]
    RewriteRule ^/(.*)$ http://localhost:8082/$1 [P,L]

    RewriteCond %{REQUEST_URI} !^/api/ [NC]
    RewriteRule ^/(.*)$ http://localhost:8082/share/$1 [P,L]

    ProxyPassReverse / http://localhost:8082/
    ProxyPassReverseCookiePath /share/ /

when visiting the site "test.example.com" (which uses the above apache config) I am getting errors:

GET http://test.example.com/api/notes/l0lI2wfNV8Gi/download net::ERR_ABORTED 401 (Unauthorized)

which is expected but I thought including via those attributes would use the /shared/ location to mitigate needing logon access?!

TriliumNext Version

0.102.1

What operating system are you using?

Other Linux

What is your setup?

Server access only

Operating System Version

Win 10 & Debian

Error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    State: TriageIssues that need to be verified

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions