mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #340] A Start for Integration with OAuth2-Proxy #5964
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#5964
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?
Originally created by @anonhostpi on GitHub (Apr 1, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/340
Is your feature request related to a problem? Please describe.
Another popular reverse proxy, that is typically used in tandem with Nginx/Traefik is OAuth2-Proxy. OAuth2-Proxy provides OAuth and OIDC authentication for web services that don't come with it. One thing it lacks is a UI for configuration.
Describe the solution you'd like
I think this is another place where Nginx-UI could shine over NPM.
Since OAuth2-Proxy can also be configured with a config file, I imagine that the same methods for configuring the nginx configs could be used to configure OAuth2's config file:
It is important to note that there isn't a default location for this file, so it may have to be user-specified.
I believe that OAuth2 uses go viper for configuration, but I think it limits the valid formats to mainly toml, but also yaml. Since these are serialization formats, you may be restricted to just providing edit access via the editor, unless you can come up with some GUI method for serialization formats (JSON, TOML, YAML, etc)
Describe alternatives you've considered
Editing the config file with nano over ssh
Additional context
I say that this is a start, because OAuth2-Proxy is also written in Go, so it might be possible for a more direct integration.
@0xJacky commented on GitHub (Jul 21, 2024):
Although Nginx UI is not limited to use with Nginx, we are unable to optimize it for other branches of Nginx or reverse proxy due to limited energy, so we cannot guarantee its compatibility.
We welcome anyone to fork this project and adapt it specifically for other reverse proxies.
Thanks for your suggestion.