mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Update cups.conf
Reverse-proxy cups with nginx
This commit is contained in:
parent
3cda4faa59
commit
25211d342e
1 changed files with 18 additions and 2 deletions
|
@ -1,2 +1,18 @@
|
|||
ProxyPass /cups http://localhost:631
|
||||
ProxyPassReverse /cups http://localhost:631
|
||||
location ~ /cups/(.*) {
|
||||
proxy_pass https://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_cache_bypass $http_upgrade;
|
||||
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
sub_filter ' href="/' ' href="/cups/';
|
||||
sub_filter ' action="/' ' action="/cups/';
|
||||
sub_filter ' src="/' ' src="/cups/';
|
||||
sub_filter_types *;
|
||||
sub_filter_once off;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue