mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #980 from arky/kiwix-fixes
Use Kiwix default URI box.lan/kiwix
This commit is contained in:
		
						commit
						32cc117fc9
					
				
					 3 changed files with 10 additions and 4 deletions
				
			
		| 
						 | 
					@ -13,7 +13,8 @@ Locations
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Your ZIM files are expected to be in /library/zims/content
 | 
					- Your ZIM files are expected to be in /library/zims/content
 | 
				
			||||||
- Your ZIM index files are expected to be in directories under /library/zims/index
 | 
					- Your ZIM index files are expected to be in directories under /library/zims/index
 | 
				
			||||||
- The URL is http://box:3000
 | 
					- The URL is http://box/kiwix or http://box.lan/kiwix (both proxied for AWStats)
 | 
				
			||||||
 | 
					- Use URL http://box:3000/kiwix if you want to avoid the proxy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Your local ZIM catalog (at /library/zims/library.xml) can be
 | 
					Your local ZIM catalog (at /library/zims/library.xml) can be
 | 
				
			||||||
regenerated by running: iiab-make-kiwix-lib
 | 
					regenerated by running: /usr/bin/iiab-make-kiwix-lib
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,7 @@ kiwix_src_file_i686: "{{ kiwix_version_i686 }}.tar.gz"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
kiwix_port: 3000
 | 
					kiwix_port: 3000
 | 
				
			||||||
# Used for Kiwix proxy http://box/kiwix/
 | 
					# Used for Kiwix proxy http://box/kiwix/
 | 
				
			||||||
kiwix_url: /kiwix/
 | 
					kiwix_url: /kiwix
 | 
				
			||||||
kiwix_path: "{{ iiab_base }}/kiwix"
 | 
					kiwix_path: "{{ iiab_base }}/kiwix"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# /library/zims contains 3 important things:
 | 
					# /library/zims contains 3 important things:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +1,6 @@
 | 
				
			||||||
ProxyPass {{ kiwix_url }}  http://127.0.0.1:{{ kiwix_port }}{{ kiwix_url }}
 | 
					ProxyPreserveHost On
 | 
				
			||||||
 | 
					ProxyPass {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }}
 | 
				
			||||||
 | 
					ProxyPassReverse {{ kiwix_url }} http://127.0.0.1:{{ kiwix_port}}{{ kiwix_url }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RewriteEngine on
 | 
				
			||||||
 | 
					RewriteRule ^/kiwix$ /kiwix/ [R]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue