nginx.yml 921 B

1234567891011121314151617181920212223242526272829
  1. nginx_sites:
  2. default:
  3. - listen 80 default_server
  4. - "listen [::]:80 default_server"
  5. - server_name _
  6. - listen 443 ssl
  7. - "listen [::]:443 ssl"
  8. - "ssl_certificate /etc/nginx/ssl/wiki.ffdo.de.crt"
  9. - "ssl_certificate_key /etc/nginx/ssl/wiki.ffdo.de.key"
  10. - "ssl_dhparam /etc/nginx/dhparams.pem"
  11. - "root /var/www"
  12. - index index.html
  13. - "location = / { return 302 /meshviewer/; }"
  14. - location /meshviewer {
  15. alias {{meshviewer_install_directory}};
  16. try_files $uri $uri/ =404;
  17. gzip on;
  18. gzip_comp_level 2;
  19. gzip_types application/json application/javascript text/css;
  20. gzip_vary on;
  21. }
  22. - location /data {
  23. proxy_pass http://127.0.0.1:8080;
  24. proxy_redirect off;
  25. gzip on;
  26. gzip_comp_level 2;
  27. gzip_types application/json;
  28. gzip_vary on;
  29. }