meshviewer.conf.j2 687 B

12345678910111213141516171819202122232425262728293031323334
  1. location = / {
  2. return 302 /meshviewer/;
  3. }
  4. rewrite ^/meshviewer-neu(.*)$ /meshviewer$1 permanent;
  5. location /meshviewer {
  6. alias /srv/meshviewer;
  7. index index.html;
  8. try_files $uri $uri/ =404;
  9. gzip on;
  10. gzip_comp_level 2;
  11. gzip_types application/json application/javascript text/css;
  12. gzip_vary on;
  13. }
  14. location /data/ {
  15. include proxy_params;
  16. proxy_pass http://[::1]:8079/;
  17. gzip on;
  18. gzip_comp_level 2;
  19. gzip_types application/json;
  20. gzip_vary on;
  21. }
  22. location /meshviewer-alt {
  23. proxy_pass https://[2001:4ba0:ffff:15::22];
  24. proxy_set_header Host map.ffdo.de;
  25. }
  26. location /data-alt {
  27. proxy_pass https://[2001:4ba0:ffff:15::22];
  28. proxy_set_header Host map.ffdo.de;
  29. }