1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/calibre-web/templates/calibre-web.conf.j2

22 lines
798 B
Text
Raw Normal View History

2018-10-14 02:05:48 +00:00
# Line used to work (in August 2018) but prevented http://box/books from working in October 2018: https://github.com/iiab/iiab/issues/1196
2018-10-11 00:44:08 +00:00
#<VirtualHost *:80>
2018-10-14 02:05:48 +00:00
# Unnec when "{{ calibreweb_url }}" is added to Proxy* directive(s) further below
2018-10-11 00:44:08 +00:00
# <Location "{{ calibreweb_url }}" >
2018-10-11 00:19:22 +00:00
RequestHeader set X-SCRIPT-NAME {{ calibreweb_url }}
2018-10-11 00:44:08 +00:00
# Appears unnec:
RequestHeader set X-SCHEME http
2018-10-14 02:05:48 +00:00
ProxyPass {{ calibreweb_url }} http://localhost:{{ calibreweb_port }}/
2018-10-11 00:44:08 +00:00
2018-10-19 15:14:21 +00:00
# Possibly unnec? (ProxyPassReverse rewrites internal links, that come back
# from proxy! Whereas e.g. kiwix.conf doesn't need this, as kiwix itself
# prefixes URLs, thanks to --urlRootLocation=/kiwix/ in its systemd file.)
2018-10-14 02:05:48 +00:00
ProxyPassReverse {{ calibreweb_url }} http://localhost:{{ calibreweb_port }}/
2018-10-11 00:44:08 +00:00
2018-10-11 00:19:22 +00:00
# </Location>
2018-10-11 00:44:08 +00:00
2018-10-11 00:19:22 +00:00
#</VirtualHost>