2020-02-02 17:30:19 +00:00
|
|
|
# RELATED: https://github.com/janeczku/calibre-web/wiki/Setup-Reverse-Proxy
|
|
|
|
|
2020-02-14 07:02:48 +00:00
|
|
|
# http://box/books
|
2020-01-11 22:34:55 +00:00
|
|
|
location {{ calibreweb_url1 }}/ {
|
2019-11-28 08:11:49 +00:00
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Scheme $scheme;
|
2020-01-11 22:34:55 +00:00
|
|
|
proxy_set_header X-Script-Name {{ calibreweb_url1 }};
|
2019-11-28 08:11:49 +00:00
|
|
|
proxy_pass http://127.0.0.1:8083;
|
2019-10-15 17:42:04 +00:00
|
|
|
}
|
2020-02-14 06:56:14 +00:00
|
|
|
|
2020-02-14 07:02:48 +00:00
|
|
|
# http://box/libros
|
2020-02-14 06:56:14 +00:00
|
|
|
location {{ calibreweb_url2 }}/ {
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Scheme $scheme;
|
|
|
|
proxy_set_header X-Script-Name {{ calibreweb_url2 }};
|
|
|
|
proxy_pass http://127.0.0.1:8083;
|
|
|
|
}
|
|
|
|
|
2020-02-14 07:02:48 +00:00
|
|
|
# http://box/livres
|
2020-02-14 06:56:14 +00:00
|
|
|
location {{ calibreweb_url3 }}/ {
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Scheme $scheme;
|
|
|
|
proxy_set_header X-Script-Name {{ calibreweb_url3 }};
|
|
|
|
proxy_pass http://127.0.0.1:8083;
|
|
|
|
}
|