Move admin/login note to configuration.md and link to the wiki

This commit is contained in:
Andrew Berry 2024-03-06 10:32:55 -05:00
parent e73186f043
commit 1b29649635
No known key found for this signature in database
GPG Key ID: 22C19D01CEBFC72B
2 changed files with 2 additions and 8 deletions

View File

@ -695,10 +695,4 @@ More details about configuration option for various providers can be found in th
### Disabling Regular Login ### Disabling Regular Login
Once external auth is set up, 'regular' login can be disabled with the [PAPERLESS_DISABLE_REGULAR_LOGIN](configuration.md#PAPERLESS_DISABLE_REGULAR_LOGIN) setting. This setting will not block access to the built-in Django login form at `/admin/login`. To block access to that page, consider blocking it in your web server configuration. For example, with Nginx, try: Once external auth is set up, 'regular' login can be disabled with the [PAPERLESS_DISABLE_REGULAR_LOGIN](configuration.md#PAPERLESS_DISABLE_REGULAR_LOGIN) setting.
```
location /admin/login {
return 403;
}
```

View File

@ -585,7 +585,7 @@ system. See the corresponding
#### [`PAPERLESS_DISABLE_REGULAR_LOGIN=<bool>`](#PAPERLESS_DISABLE_REGULAR_LOGIN) {#PAPERLESS_DISABLE_REGULAR_LOGIN} #### [`PAPERLESS_DISABLE_REGULAR_LOGIN=<bool>`](#PAPERLESS_DISABLE_REGULAR_LOGIN) {#PAPERLESS_DISABLE_REGULAR_LOGIN}
: Disables the regular frontend username / password login, i.e. once you have setup SSO. Note that the Django admin login cannot be disabled. : Disables the regular frontend username / password login, i.e. once you have setup SSO. Note that the Django admin login cannot be disabled by Paperless. To prevent logins directly into Django, consider blocking `/admin/login` in your [web server or reverse proxy configuration](https://github.com/paperless-ngx/paperless-ngx/wiki/Using-a-Reverse-Proxy-with-Paperless-ngx).
Defaults to False Defaults to False