Skip to content

Commit 36e04cf

Browse files
authored
Merge pull request #1089 from linuxserver/swag-ondemand-update-readme
Update the readme with authelia
2 parents f99b900 + 9c33f51 commit 36e04cf

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,23 @@ Or set the following label if using `swag-auto-proxy`:
4848
container_name: somecontainer
4949
...
5050
labels:
51-
- swag_server_custom_directive=include /config/nginx/ondemand.conf;
51+
- 'swag_server_custom_directive=include /config/nginx/ondemand.conf;'
52+
```
53+
#### Authelia
54+
Add the following line to each proxy-conf where you wish to show the loading page inside the `location` section:
55+
```nginx
56+
location / {
57+
...
58+
error_page 502 = @waking_up;
59+
...
60+
```
61+
Or set the following label if using `swag-auto-proxy`:
62+
```yaml
63+
somecontainer:
64+
container_name: somecontainer
65+
...
66+
labels:
67+
- 'swag_location_custom_directive=error_page 502 = @waking_up;'
5268
```
5369
### Labels:
5470
- `swag_ondemand=enable` - required for on-demand.

0 commit comments

Comments
 (0)