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

Merge pull request #1 from deldesir/deldesir-patch-1

Update cups.conf
This commit is contained in:
Blondel MONDESIR 2021-04-30 13:36:25 -04:00 committed by GitHub
commit 8b8949de67
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;
}