main.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ---
  2. galaxy_info:
  3. author: Till Klocke
  4. description: Creates a map server to visualize the mesh of a Freifunk Community
  5. company: Freifunk Dortmund
  6. license: MIT
  7. min_ansible_version: 1.2
  8. platforms:
  9. - name: Ubuntu
  10. versions:
  11. - all
  12. - name: Debian
  13. versions:
  14. - all
  15. categories:
  16. - monitoring
  17. - networking
  18. - system
  19. - web
  20. dependencies:
  21. - batman
  22. - mapserver-certificates
  23. - role: jdauphant.nginx
  24. nginx_sites:
  25. default:
  26. - listen 80 default_server
  27. - "listen [::]:80 default_server"
  28. - server_name _
  29. - listen 443 ssl
  30. - "listen [::]:443 ssl"
  31. - "ssl_certificate /etc/nginx/ssl/wiki.ffdo.de.crt"
  32. - "ssl_certificate_key /etc/nginx/ssl/wiki.ffdo.de.key"
  33. - "ssl_dhparam /etc/nginx/dhparams.pem"
  34. - "root /var/www"
  35. - index index.html
  36. - "location = / { return 302 /meshviewer/; }"
  37. - location /meshviewer {
  38. alias {{meshviewer_install_directory}};
  39. try_files $uri $uri/ =404;
  40. gzip on;
  41. gzip_comp_level 2;
  42. gzip_types application/json application/javascript text/css;
  43. gzip_vary on;
  44. }
  45. - location /data {
  46. alias {{ffmap_backend_data_dir}};
  47. gzip on;
  48. gzip_comp_level 2;
  49. gzip_types application/json;
  50. gzip_vary on;
  51. }
  52. - meshviewer
  53. - supernode-interfaces