oauth2-proxy/pkg/apis
Josef Johansson 6743a9cc89 Add support for systemd.socket
When using sockets to pass data between e.g. nginx and oauth2-proxy it's
simpler to use sockets. Systemd can even facilitate this and pass the
actual socket directly.

This also means that only the socket runs with the same group as nginx
while the service runs with DynamicUser.

Does not support TLS yet.

nginx
```
server {
    location /oauth2/ {
      proxy_pass http://unix:/run/oauth2-proxy/oauth2.sock;
}
```

oauth2-proxy.socket
```
[Socket]
ListenStream=%t/oauth2.sock
SocketGroup=www-data
SocketMode=0660
```

Start oauth2-proxy with the parameter `--http-address=fd:3`.

Signed-off-by: Josef Johansson <josef@oderland.se>
2024-10-23 09:35:47 +02:00
..
ip Move RealClientIP code to IP packages 2020-05-23 15:17:41 +01:00
middleware chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
options Add support for systemd.socket 2024-10-23 09:35:47 +02:00
sessions Updated linters 2023-10-24 16:37:57 +02:00