You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/docs/guides/swag.mdx
+28-73Lines changed: 28 additions & 73 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,78 +5,48 @@ description: Use Tinyauth with the LinuxServer.io SWAG reverse proxy.
5
5
6
6
[SWAG](https://docs.linuxserver.io/general/swag/) is an Nginx-based reverse proxy maintained by LinuxServer.io. Its proxy configuration samples include support for Tinyauth.
7
7
8
-
:::caution[Temporary guide]
9
-
This guide is temporary. The configuration below follows our open [SWAG pull request](https://github.com/linuxserver/docker-swag/pull/621), which adds support for Tinyauth's `X-Tinyauth-Location` header. We are waiting for LinuxServer.io to merge and release the pull request. Until then, the required configuration must be added manually.
10
-
:::
11
-
12
8
## Prerequisites
13
9
14
10
- Tinyauth v5.2.0 or newer.
15
11
- A working SWAG installation.
16
12
- SWAG and Tinyauth attached to the same user-defined Docker network.
17
-
- A Tinyauth container named `tinyauth`. If it has a different name, update `$upstream_tinyauth` below.
18
13
- A proxy configuration for Tinyauth enabled by renaming `/config/nginx/proxy-confs/tinyauth.subdomain.conf.sample` to `/config/nginx/proxy-confs/tinyauth.subdomain.conf`.
19
14
20
-
## Configure Tinyauth Authentication
21
-
22
-
### Create the Tinyauth Proxy Configuration
23
-
24
-
:::caution[Required for Tinyauth v5.2.0 and newer]
25
-
Tinyauth v5.2.0 and newer does not allow a request to contain both `X-Forwarded-Host` and `X-Forwarded-Uri` headers alongside `X-Original-URL`. SWAG's standard `/config/nginx/proxy.conf` sets all three headers, so a separate proxy configuration that clears the conflicting headers is required for Tinyauth authentication requests.
26
-
:::
27
-
28
-
Create `/config/nginx/tinyauth-proxy.conf` with the following contents:
0 commit comments