Skip to content

Commit

Permalink
added paperless api
Browse files Browse the repository at this point in the history
  • Loading branch information
jlssmt committed Sep 12, 2024
1 parent 150ede5 commit f9e1e48
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions paperless.subdomain.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,14 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}

location ~ (/paperless)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app paperless;
set $upstream_port 8000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}
}
10 changes: 10 additions & 0 deletions paperless.subfolder.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ location ^~ /paperless/ {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}

location ~ (/paperless)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app paperless;
set $upstream_port 8000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

}

0 comments on commit f9e1e48

Please sign in to comment.