mpckit.monoexp.com.conf 851 B

1234567891011121314151617181920212223
  1. # /etc/nginx/vhosts.d/mpckit.monoexp.com.conf
  2. #
  3. # Static site for mpckit, published from public/ by the deploy pipeline.
  4. # Port 80 (ACME challenges and the HTTP->HTTPS redirect) is handled by the
  5. # `.monoexp.com` block in 00-default.conf.
  6. #
  7. # Certificate: sudo /usr/local/sbin/issue-cert mpckit.monoexp.com
  8. server {
  9. listen 443 ssl; listen [::]:443 ssl;
  10. server_name mpckit.monoexp.com;
  11. ssl_certificate /etc/letsencrypt/live/mpckit.monoexp.com/fullchain.pem;
  12. ssl_certificate_key /etc/letsencrypt/live/mpckit.monoexp.com/privkey.pem;
  13. include snippets/tls-common.conf;
  14. root /srv/www/vhosts/mpckit.monoexp.com;
  15. index index.html;
  16. location / { try_files $uri $uri/ =404; }
  17. # Short cache for the stylesheet, icon and screenshots; HTML keeps nginx's defaults.
  18. location ~* \.(css|svg|png|webp)$ { expires 1h; }
  19. }