1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Update to work with http://box/cups/

This commit is contained in:
Blondel MONDESIR 2021-05-04 11:51:20 -04:00 committed by GitHub
parent 26d8c620fd
commit da1d147fc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,4 +7,15 @@ location ~ /print/(.*) {
sub_filter ' src="/' ' src="/print/';
sub_filter_types *;
sub_filter_once off;
}
location ~ /cups/(.*) {
proxy_pass http://127.0.0.1:631/$1;
proxy_set_header Host '127.0.0.1';
sub_filter ' href="/' ' href="/cups/';
sub_filter ' action="/' ' action="/cups/';
sub_filter ' src="/' ' src="/cups/';
sub_filter_types *;
sub_filter_once off;
}