1
0
Fork 0
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:
Blondel MONDESIR 2021-04-30 12:36:28 -04:00 committed by GitHub
parent 3cda4faa59
commit 25211d342e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}