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:
parent
da1d147fc9
commit
4141991a0b
1 changed files with 4 additions and 0 deletions
|
@ -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/';
|
||||
|
|
Loading…
Reference in a new issue