Expand a bit on the way application discovery works.

This commit is contained in:
Lucas Hadjilucas
2023-01-28 23:05:09 +00:00
parent 6e6ddfb166
commit e96a14d4ec
+4 -1
View File
@@ -23,13 +23,16 @@ Requires an internal DNS, add a rewrite of `dashboard.domain.com` to your server
Remove the allow/deny lines in `/config/nginx/proxy-confs/dashboard.subdomain.com`, and instead secure it some other way (like Authelia for example).
## Notes
- The application discovery scans the proxy configs and looks for the following structure in accordance with the samples:
- The application discovery scans all files, irrespective of extension, under the nginx config directories and looks for the following structure in accordance with the samples:
```yaml
set $upstream_app <container/address>;
set $upstream_port <port>;
set $upstream_proto <protocol>;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
```
The following directories are scanned for configurations:
- `/config/nginx`
- `/etc/nginx/http.d`
- Either [Swag Maxmind mod](https://github.com/linuxserver/docker-mods/tree/swag-maxmind) or [Swag DBIP mod](https://github.com/linuxserver/docker-mods/tree/swag-dbip) are required to enable the geo location graph.
- The host's fail2ban can be supported by mounting it to swag `- /path/to/host/fail2ban.sqlite3:/dashboard/fail2ban.sqlite3:ro`
- The host's logs can be supported by mounting it to swag `- /path/to/host/logs:/dashboard/logs:ro`