1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

initial checkin

This commit is contained in:
Tim Moody 2020-07-15 16:05:19 -04:00
parent 5440636746
commit 56b393c639
4 changed files with 19 additions and 0 deletions

View file

@ -117,6 +117,9 @@
#mode: '0644'
when: apache_installed is defined
# install kiwix app
- include_tasks: roles/nginx/tasks/homepage.yml
when: kiwix_incl_apk
# 5. RECORD Kiwix AS INSTALLED

View file

@ -33,6 +33,7 @@
with_items:
- { src: 'server.conf.j2', dest: '/etc/nginx/server.conf' }
- { src: 'nginx.conf.j2', dest: '/etc/nginx/nginx.conf' }
- { src: 'mime-types.j2', dest: '/etc/nginx/mime.types' }
#- { src: 'ports.conf.j2', dest: '/etc/{{ apache_service }}/ports.conf' } # Moved to enable-or-disable.yml
#- { src: 'iiab.conf.j2', dest: "{{ nginx_conf_dir }}/iiab.conf" } # Moved into homepage.yml below

View file

@ -26,3 +26,15 @@ location /js-menu/ {
fancyindex off; # autoindex off;
}
}
location /software/ {
fancyindex on; # Enable fancy indexes.
fancyindex_exact_size off; # Output human-readable file sizes.
location ~* \.(apk)$ {
add_header Content-Type application/vnd.android.package-archive;
}
location ~* \.(zim)$ {
add_header Content-Type application/zip;
}
}

View file

@ -450,6 +450,9 @@ kiwix_install: True
kiwix_enabled: True
kiwix_port: 3000
iiab_zim_path: "{{ content_base }}/zims" # /library/zims
kiwix_incl_apk: False
kiwix_apk_url: /software/kiwix
kiwix_apk_src: https://download.kiwix.org/release/kiwix-android/kiwix.apk
moodle_install: False
moodle_enabled: False