mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[PR #752] [MERGED] app: make it possible to serve lldap behind a sub-path #930
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#930
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/752
Author: @MinerSebas
Created: 12/5/2023
Status: ✅ Merged
Merged: 12/7/2023
Merged by: @nitnelave
Base:
main← Head:sub-path📝 Commits (1)
9480c31app: make it possible to serve lldap behind a sub-path📊 Changes
6 files changed (+88 additions, -35 deletions)
View changed files
📝
app/index.html(+3 -2)📝
app/src/components/app.rs(+1 -1)📝
app/src/infra/api.rs(+29 -17)📝
app/src/infra/cookies.rs(+3 -2)📝
server/src/infra/auth_service.rs(+22 -7)📝
server/src/infra/tcp_server.rs(+30 -6)📄 Description
This adds support for placing lldap on a sub-path.
To use it, a User needs to set the
http_urlsetting to a URL with a sub-path (http://example.com/lldap) and setup the reverse-proxy to strip the sub-path.Caddy example:
Future Work:
Currently, the sub-path is injected every time
index.htmlandmain.jsare called, but this could be cached instead.I tried it, but I never used actix before, and thus couldn't make it work.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.