1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Update cups.conf

This commit is contained in:
Blondel MONDESIR 2021-05-04 16:32:26 -04:00 committed by GitHub
parent da1d147fc9
commit 4141991a0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,8 @@
location ~ /print/(.*) {
proxy_pass http://127.0.0.1:631/$1;
proxy_set_header Host '127.0.0.1';
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
sub_filter ' href="/' ' href="/print/';
sub_filter ' action="/' ' action="/print/';
@ -12,6 +14,8 @@ location ~ /print/(.*) {
location ~ /cups/(.*) {
proxy_pass http://127.0.0.1:631/$1;
proxy_set_header Host '127.0.0.1';
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
sub_filter ' href="/' ' href="/cups/';
sub_filter ' action="/' ' action="/cups/';