www2.ffho.net 889 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # /etc/nginx/sites-enabled/www2.ffho.net (Salt managed)
  3. #
  4. {%- set acme_thumbprint = salt['pillar.get']('acme:thumbprint', False) %}
  5. server {
  6. listen 443;
  7. listen [::]:443;
  8. ssl on;
  9. ssl_certificate /etc/ssl/certs/www2.ffho.net.cert.pem;
  10. ssl_certificate_key /etc/ssl/private/www2.ffho.net.key.pem;
  11. include /etc/nginx/ffho.d/add-headers.conf;
  12. root /srv/www2/
  13. server_name www2.ffho.net
  14. fancyindex on;
  15. fancyindex_exact_size off;
  16. fancyindex_name_length 70;
  17. fancyindex_header /header.html;
  18. fancyindex_localtime on;
  19. fancyindex_default_sort name;
  20. location / {
  21. try_files $uri $uri/ /index.html =404;
  22. fancyindex_ignore header.html favicon.ico models-short.txt models.txt robots.txt scripts;
  23. }
  24. {%- if acme_thumbprint %}
  25. location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
  26. default_type text/plain;
  27. return 200 "$1.{{ acme_thumbprint }}";
  28. }
  29. {%- endif %}
  30. }