[GH-ISSUE #340] A Start for Integration with OAuth2-Proxy #7310

Closed
opened 2026-03-12 20:01:37 +03:00 by kerem · 1 comment
Owner

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.

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: - see: https://oauth2-proxy.github.io/oauth2-proxy/configuration/overview/ 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.
kerem 2026-03-12 20:01:37 +03:00
Author
Owner

@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.

<!-- gh-comment-id:2241553063 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#7310
No description provided.