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

oversignts and corrections -- most now seem to work on rpi

This commit is contained in:
George Hunt 2019-10-16 00:47:49 +01:00 committed by Jerry Vonau
parent 4778ad5e3c
commit cffb6afecc
23 changed files with 452 additions and 23 deletions

View file

@ -70,23 +70,17 @@
src: map_functions.js
dest: '{{ vector_map_path }}/maplist/assets'
- name: Install /etc/{{ apache_config_dir }}/osm-vector-maps.conf from template
- name: Install /etc/nginx/conf.d/osm-vector-maps.conf from template
template:
src: osm-vector-maps.conf
dest: "/etc/{{ apache_config_dir }}/osm-vector-maps.conf"
src: osm-vector-maps-nginx.conf
dest: "/etc/nginx/conf.d/osm-vector-maps-nginx.conf"
when: osm_vector_maps_enabled | bool
- name: Create symlink osm-vector-maps.conf from sites-enabled to sites-available (debuntu, not nec for redhat)
- name: Remove config /etc/nginx/conf,d/osm-vector-maps.conf (debuntu)
file:
src: /etc/apache2/sites-available/osm-vector-maps.conf
path: /etc/apache2/sites-enabled/osm-vector-maps.conf
state: link
when: osm_vector_maps_enabled and is_debuntu
- name: Remove symlink /etc/apache2/sites-enabled/osm-vector-maps.conf (debuntu)
file:
path: /etc/apache2/sites-enabled/osm-vector-maps.conf
path: /etc/nginx/conf.d/osm-vector-maps-nginx.conf
state: absent
when: not osm_vector_maps_enabled and is_debuntu
when: not osm_vector_maps_enabled | bool
#- name: Does the {{ vector_map_path }}/index.html redirect already exist?
# stat:

View file

@ -0,0 +1,7 @@
# For downloadable regional vector tilesets
location /maps {
alias /library/www/osm-vector-maps;
}
location /osm-vector-maps {
alias /library/www/osm-vector-maps;
}