diff --git a/README.md b/README.md index 78bc1f431..5c51c6f24 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ If you want to see paperless-ng in action, [more screenshots are available in th # Getting started -The recommended way to deploy paperless is docker-compose. The files in the /docker/hub directory are configured to pull the image from Docker Hub. +The recommended way to deploy paperless is docker-compose. The files in the /docker/compose directory are configured to pull the image from Docker Hub. Read the [documentation](https://paperless-ng.readthedocs.io/en/latest/setup.html#installation) on how to get started. diff --git a/ansible/tasks/main.yml b/ansible/tasks/main.yml index 92eb92032..9fc476597 100644 --- a/ansible/tasks/main.yml +++ b/ansible/tasks/main.yml @@ -329,7 +329,7 @@ - regexp: PAPERLESS_TIKA_ENDPOINT line: "PAPERLESS_TIKA_ENDPOINT={{ paperlessng_tika_endpoint }}" - regexp: PAPERLESS_TIKA_GOTENBERG_ENDPOINT - line: "PAPERLESS_TIKA_GOTENBERG_ENDPOINT={{ paperlessng_tika_endpoint }}" + line: "PAPERLESS_TIKA_GOTENBERG_ENDPOINT={{ paperlessng_tika_gotenberg_endpoint }}" # Software tweaks - regexp: PAPERLESS_TIME_ZONE line: "PAPERLESS_TIME_ZONE={{ paperlessng_time_zone }}" diff --git a/docs/configuration.rst b/docs/configuration.rst index 7d079a96c..9b17f8782 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -233,6 +233,13 @@ PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME= Defaults to `HTTP_REMOTE_USER`. +PAPERLESS_LOGOUT_REDIRECT_URL= + URL to redirect the user to after a logout. This can be used together with + `PAPERLESS_ENABLE_HTTP_REMOTE_USER` to redirect the user back to the SSO + application's logout page. + + Defaults to None, which disables this feature. + .. _configuration-ocr: OCR settings diff --git a/docs/setup.rst b/docs/setup.rst index 3600492da..99c910cf2 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -171,6 +171,24 @@ Install Paperless from Docker Hub Don't change the part after the colon or paperless wont find your documents. + You may also need to change the default port that the webserver will use + from the default (8000): + + .. code:: + + ports: + - 8000:8000 + + Replace the part BEFORE the colon with a port of your choice: + + .. code:: + + ports: + - 8010:8000 + + Don't change the part after the colon or edit other lines that refer to + port 8000. Modifying the part before the colon will map requests on another + port to the webserver running on the default port. 5. Modify ``docker-compose.env``, following the comments in the file. The most important change is to set ``USERMAP_UID`` and ``USERMAP_GID`` diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index 989c998f1..10a1ee83c 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -123,6 +123,15 @@ + +
  • + Preview + +
    + +
    +
    +
  • @@ -133,7 +142,7 @@ -
    +
    diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index 493e61d35..e711b3416 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -1,7 +1,7 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; +import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; -import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; +import { NgbModal, NgbNav } from '@ng-bootstrap/ng-bootstrap'; import { PaperlessCorrespondent } from 'src/app/data/paperless-correspondent'; import { PaperlessDocument } from 'src/app/data/paperless-document'; import { PaperlessDocumentMetadata } from 'src/app/data/paperless-document-metadata'; @@ -65,6 +65,15 @@ export class DocumentDetailComponent implements OnInit { previewCurrentPage: number = 1 previewNumPages: number = 1 + @ViewChild('nav') nav: NgbNav + @ViewChild('pdfPreview') set pdfPreview(element) { + // this gets called when compontent added or removed from DOM + if (element && element.nativeElement.offsetParent !== null) { // its visible + + setTimeout(()=> this.nav?.select(1)); + } + } + constructor( private documentsService: DocumentService, private route: ActivatedRoute, diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 5f03a406e..805b1aec0 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -144,6 +144,7 @@ ROOT_URLCONF = 'paperless.urls' FORCE_SCRIPT_NAME = os.getenv("PAPERLESS_FORCE_SCRIPT_NAME") BASE_URL = (FORCE_SCRIPT_NAME or "") + "/" LOGIN_URL = BASE_URL + "accounts/login/" +LOGOUT_REDIRECT_URL = os.getenv("PAPERLESS_LOGOUT_REDIRECT_URL") WSGI_APPLICATION = 'paperless.wsgi.application' ASGI_APPLICATION = "paperless.asgi.application"