1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update cups.conf

This commit is contained in:
Blondel MONDESIR 2021-05-04 10:55:27 -04:00 committed by GitHub
parent f343834206
commit 5f8514af77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,10 @@
location ~ /cups/(.*) { location ~ /print/(.*) {
proxy_pass http://127.0.0.1:631/$1; proxy_pass http://127.0.0.1:631/$1;
proxy_http_version 1.1;
proxy_set_header Accept-Encoding "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host '127.0.0.1'; proxy_set_header Host '127.0.0.1';
proxy_cache_bypass $http_upgrade;
sub_filter ' href="/' ' href="/print/';
proxy_set_header X-Real-IP $remote_addr; sub_filter ' action="/' ' action="/print/';
sub_filter ' src="/' ' src="/print/';
sub_filter ' href="/' ' href="/cups/';
sub_filter ' action="/' ' action="/cups/';
sub_filter ' src="/' ' src="/cups/';
sub_filter_types *; sub_filter_types *;
sub_filter_once off; sub_filter_once off;
} }