aboutsummaryrefslogtreecommitdiff
path: root/tw/services/paperless.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tw/services/paperless.scm')
-rw-r--r--tw/services/paperless.scm11
1 files changed, 1 insertions, 10 deletions
diff --git a/tw/services/paperless.scm b/tw/services/paperless.scm
index e115ea57..75998eee 100644
--- a/tw/services/paperless.scm
+++ b/tw/services/paperless.scm
@@ -4,7 +4,6 @@
#:use-module (gnu services)
#:use-module (gnu services configuration)
#:use-module (gnu services databases)
- #:use-module (gnu services web)
#:use-module (guix records)
#:use-module (tw services docker)
#:use-module (tw services restic)
@@ -86,15 +85,7 @@ PAPERLESS_OCR_USER_ARGS={\"invalidate_digital_signatures\": true, \"continue_on_
(if (string=? bind-address "0.0.0.0")
"127.0.0.1"
bind-address))
- (extra-locations
- (list (nginx-location-configuration
- (uri "/ws/") ; e.g. /ws/status/ endpoint
- ;; https://nginx.org/en/docs/http/websocket.html
- (body `(("proxy_pass http://" ,destination-ip ":"
- ,(number->string destination-port) ";")
- "proxy_http_version 1.1;"
- "proxy_set_header Upgrade $http_upgrade;"
- "proxy_set_header Connection \"upgrade\";"))))))))))
+ (websocket-uri "/ws/")))))) ; e.g. /ws/status/ endpoint
(define %paperless-backup-repo
(restic-local-repository (path "/var/backups/paperless")))