Closed MBPotier closed 1 year ago
This will need to be rebased after https://github.com/linuxserver/docker-snipe-it/pull/28 merges.
lspipepr/snipe-it:v6.0.11-pkg-2eb37743-pr-28
is appreciated (leave comments on #28 with any issues, or confirmation that it works as expected).I am a bot, here are the test results for this PR: https://ci-tests.linuxserver.io/lspipepr/snipe-it/v6.0.11-pkg-4a861c40-pr-46/index.html https://ci-tests.linuxserver.io/lspipepr/snipe-it/v6.0.11-pkg-4a861c40-pr-46/shellcheck-result.xml
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description:
I added support for HTTP header auth via the X-Forwarded-User header in the Nginx site config.
Benefits of this PR and context:
Snipe-IT supports authentication via the REMOTE_USER HTTP header; this feature can be enabled in its settings. This is useful for SSO and is unsupported in the container currently. The X-Forwarded-User header is often used to pass the username from a reverse proxy to the application.
How Has This Been Tested?
Built the container with the changes and tested it on my server.